The API is documented using Swagger UI. You can access the API documentation at /api-docs endpoint.
- Clone this repository.
- Make sure you have python3 and node installed in your system
- Set the environments variables as described below.
- Copy and fill the necessary env variables from
.env.examplefile to.env. - Install dependencies using
npm install&&pip install -r requirement.txt. - Start the server using
npm run dev.
If you want to use docker:
- Make sure to set the environment variables correctly from .env.example to .env, more details here
- Run these commands in this order
chmod +x build-docker.sh run-docker.sh
./build-docker.sh
./run-docker.shMake sure to set the following environment variables:
MONGO_URI: MongoDB database connection URI. Example:mongodb+srv://?:?@cluster0.cxl50.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0PORT: Port number for the backend server (default is 3000).ORIGIN_PORT: Port number for the frontend server (default is 4000).SESSION_SECRET: Secret key for session management. Example:thisisasessionsecretSENDER_EMAIL: The email of the sender 'which is the email of the one created the SMTP server'.REPLY_TO: Email listed to reply with when user want to do reply!SMTP_PORT: The port of the SMTP server. Example:465SMTP_USER: The user of the SMTP server.SMTP_PASS: The password of the SMTP server.SMTP_HOST: The SMTP server host. Example:smtp.gmail.comADMIN_EMAIL: The email of the admin. Example:admin@admin.com
This project is licensed under the MIT License.