This is a sample .NET 7 API that use PostgreSQL and Redis services.
Before you can run this API, you need to have the following installed on your machine:
To run the API, you need to set the connection string for PostgreSQL and Redis in the appsettings.json
file:
{
"ConnectionStrings": {
"ConnectionString": "host=host.docker.internal;port=5431;database=movies_db;username=postgres;password=postgres;Pooling=true"
},
"Cache": {
"HostName": "host.docker.internal",
"PortNumber": "6379",
"Password": "eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81"
}
}
It can be dockerized the services by running the docker-compose attached Movie.API.