TODOS
- Millorar proces de creacio d'usuaris i de restaurar contrasenya
- Pantalla de gestion de entradas (Fase 2)
In the .env file, change the BASEURL to the domain you want to use for your app. In the nginx.conf file, change the server_name directive to match the domain you want to use.
Set the following environment variables in your .env
file:
BASEURL
: The base URL of your application (e.g.,https://signbank.example.com
)- Other variables as specified in schema.env file
The Nginx configuration is located in the nginx/
directory. To update the configuration:
- Edit the
nginx/nginx.conf
file, for test, local or production - Update the
server_name
directive to match your domain - Restart the Nginx container:
docker-compose restart nginx
To start the project locally:
docker-compose -f docker-compose-local.yaml build
docker-compose -f docker-compose-local.yaml up
To deploy the project in production mode:
docker-compose -f docker-compose-production.yaml build
docker-compose -f docker-compose-production.yaml up -d
-d is for running docker compose in detached mode, so you can still use the terminal.
The first time we run the application, we will need to create the database, so, while the docker compose is running we will go to /backend folder.
There we need a .env file with the following:
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/signbank
Then, in the backend folder we will run:
npx prisma migrate dev
To create the databse.
Then to see if everything is working we can go to the url we set. Or we can go back to the project folder and run:
docker compose -f docker-compose-production.yaml down
docker-compose -f docker-compose-production.yaml up
frontend/
- The web client applicationbackend/
- API servermongoDB/
- Database configuration and seed scriptsnginx/
- Nginx configuration for serving the applicationFileServer/
- Server for file storagetypesense/
- Search engine configurationcertbot/
- SSL certificate management