Development
Backend
Prerequisites
- Poetry
- Python 3.11
- Pyenv (optional)
- MongoDB 7
Steps
Start Redis docker container.
Create.env
file based on env.example
, which can be found in the backend
folder:
- Configure your MongoDB host
- Configure your MongoDB database name
Skip this step, if you already have Python 3.11 installed.
In this tutorial we are using Pyenv for Python version management.
Go to the backend
folder and configure Pyenv.
backend
folder configure and install the Poetry environment
Activate the Poetry environment:
Run the backend:
Run the Celery worker:
Check http://localhost:8000/docs
for OpenAPI docs.
Additional
gRPC
.proto files can be found in the proto
folder.
To build the protofiles, execute:
backend/protobufs
folder.
Please note
Ensure that you have copied the newly generated file for pytest-initry as well. Changes in protocols should be reflected on both the client and server sides.
OpenAPI
After making any changes to the backend API, you must rebuild the frontend client.:
client
folder inside the frontend
folder.
Requirements.txt
If you add new dependencies to Poetry, please generate a requirements.txt
file for the Docker environment.:
Frontend
Install npm modules: Run the following command to install the necessary npm modules:
This will install all dependencies required for the frontend.Copy the env.example
file to create your .env
file:
.env
file according to your specific settings. Open the .env
file and set appropriate values for the environment variables.
Start the frontend in development mode:
This will launch the development server and you can access the frontend application in your browser.