Project for managing actors and movies made with ASP.NET Core 8.0, PostgreSQL, and MinIO.
-
Open a terminal, navigate to the
db
directory, and run the following commands:echo "POSTGRES_USER=david" >> .env echo "POSTGRES_PASSWORD=david" >> .env echo "POSTGRES_DB=ag53-db" >> .env
If you change these values, you also need to change the connection string for all services by updating the
DefaultConnection
inappsettings.json
files.If you want to see the database, open a web browser, navigate to http://localhost:7000, and login with the credentials you set in step 1.
-
Run the following command to start the database:
docker-compose up
-
Open another terminal, navigate to the
image-storage
directory, and run the following commands:echo "MINIO_ROOT_USER=<YOUR USERNAME>" >> .env echo "MINIO_ROOT_PASSWORD=<YOUR PASSWORD" >> .env
-
Run the following command to start the image storage:
docker-compose up
-
Open a web browser, navigate to http://localhost:9000, and login with the credentials you set in step 3.
-
Create a new access key and secret key.
-
Open
movies-service/appsettings.json
and replace the values ofMinIOAccessKey
andMinIOSecretKey
with the values you set in step 6. -
Open a terminal, navigate to the root directory, and run the following command:
docker-compose up
Open a web browser and navigate to:
- http://localhost:8080/swagger/index.html
- for Actors service
- http://localhost:8081/swagger/index.html
- for Movies service
- http://localhost:8082/swagger/index.html
- for Acting service
-
Open the terminal, navigate to the
db
directory, and run the following commands:echo "POSTGRES_USER=david" >> .env echo "POSTGRES_PASSWORD=david" >> .env echo "POSTGRES_DB=ag53-db" >> .env
If you change these values, you also need to change the connection string for all services by updating the
DefaultConnection
inappsettings.json
files.If you want to see the database, open a web browser, navigate to http://localhost:7000, and login with the credentials you set in step 1.
-
Run the following command to start the database:
docker-compose up
-
Open another terminal, navigate to the
actors-service
directory, and run the following command:./migration.sh
If you are on Windows, manually run the commands in that file.
-
Open another terminal, navigate to the
movies-service
directory, and run the following command:./migration.sh
If you are on Windows, manually run the commands in that file.