-
Create a google cloud project and note down the project id
-
Follow the database setup guide and note down the database credentials
-
Follow the image storage bucket setup guide and note down the bucket url
-
Follow the image function setup guide and note down the image function url
-
Follow the microservices setup guide and note down the created service urls
-
Follow the API gateway setup guide and note down the api gateway vm ip address
-
Follow the frontend VM setup guide
-
Follow the frontend VM load balancer setup guide and note down the load balancer IP address
-
Follow the load generator setup guide and run tests by hitting the load balancer and API Gateway VM IP addresses
-
Follow the stress test guide to see how to run tests
-
Create a Google Cloud project and note down the project name
-
Setup the image storage bucket, note down the bucket name and obtain the service account credentials
-
Setup the image function and note down the function url
-
Create an
.env.local
file in each microservice source directory
Add the following to the .env.local
files inside auth-service, mono-service and recommendation-service
DB_NAME=ovatify
DB_USER=postgres
DB_PASSWORD=Test123.
DB_HOST=host.docker.internal
Add the following to the env.local
file inside user-service
DB_NAME=ovatify
DB_USER=postgres
DB_PASSWORD=Test123.
DB_HOST=host.docker.internal
CLOUD_FUNCTION_URL=your-function-url-here
STORAGE_BUCKET_NAME=your-bucket-name-here
PROJECT_ID=your-project-id-here
Rename the service account file to credentials.json
and place it in the root directory of user-service
- Create an
.env
file infrontend/ovatify-frontend
Add the following to the .env
file
PUBLIC_BASE_URL=http://localhost:8000
- Run
docker compose up --remove-orphans --detach
- Once the services are up and running, connect to the database and restore the backup
psql -U postgres -d ovatify -f backend/database/backup.sql
- In your browser, navigate to
http://localhost:5000/
for the frontend app orhttp://localhost:7000/
for the load generator