- Docker
- Docker Compose
- Clone the repository
- Duplicate the
.env.examplefile and rename it to.envin theapifolder - Run the following command in the root folder of the project:
docker-compose -f docker-compose-dev.yml up --buildSometimes, the database connection is not established.
To verify if the database connection is established, you can first check if you have an error message in the API container logs. If you don't have any error message, it means that the connection is established.
Wait 2/3 minutes (waiting for the database to be fully initialized) and restart the API container.
Sometimes, you have an error message that says that the packages are not found.
In each node container, check if you have an error message like Cannot find module 'xxxx' or its corresponding type declarations.
Run the following command on your computer:
cd api/ && npm install --dev && cd ../free-go/ && npm install --dev && cd ../
Then, restart the API and FreeGo containers.