Inside back-end directory run yarn install
to install all back-end project dependencies.
Now you need to setup a postgress, a mongodb and a redis Docker container. If you have docker installed you can run docker ps to see the containers running on your machine.
All 3 container can be run with the following commands:
docker run --name postgresql -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
docker run --name mongodb -p 27017:27017 -d -t mongo
docker run --name redis -p 6379:6379 -d -t redis:alpine
Run docker ps
to check if your containers are up. You will see something like this:
CONTAINER ID | IMAGE | COMMAND | CREATED | STATUS | PORTS | NAMES |
---|---|---|---|---|---|---|
55b6f0727b6c | redis:alpine | "docker-entrypoint.s..." | 2 hours ago | Up 1 hours | 0.0.0.0:6379->6379/tcp | redis |
00f13f8dda62 | mongo | "docker-entrypoint.s..." | 2 hours ago | Up 1 hours | 0.0.0.0:27017->27017/tcp | mongodb |
e376cfb2b6c2 | postgresql | "docker-entrypoint.s..." | 2 hours ago | Up 1 hours | 0.0.0.0:5432->5432/tcp | postgres |
With your container running you can initialize the tables of our database running the migration: yarn sequelize db:migrate
Now configure your .env file and run the command yarn dev
to start the back-end application, it will use the port 3333
.
For our queues, we have a redis database running in background for our jobs, run this with yarn queue
Inside front-end-web directory run yarn install
to install all front-end-web project dependencies. Then run the command yarn start
to start the front-end-web application
Inside mobile directory run yarn install
to install all mobile project dependencies. Then ....