-
Notifications
You must be signed in to change notification settings - Fork 11
How to run
You can run this project in 3 different ways:
On the topics below you can find more details about the ways to run this project.
Docker is a powerful tool and in some cases very useful. In this section, you can find how to run this project fully in Docker.
You can also use Colima instead of docker desktop. Follow the instructions on its readme page to install it.
The "traditional" way it's run the project using your terminal, opening 2 terminals and run with yarn dev
/npm run dev
, but for this you need do some things first:
-
Verify if you follow the requirements to run this project;
-
Duplicate the
.env.example
file and remove.example
prefix on each application folder (backend and frontend); -
Verify if you have Docker installed and running;
-
Create a database container using the commands below:
docker-compose mongo mongo2 redis up -d
- Run this command to give execution permissions:
chmod +x database/rs-init.sh
;- This file is used to init the database.
- After that run:
docker exec mongo /scripts/rs-init.sh
.
-
Now you need to install all the dependencies, for that run on project root folder the command:
-
yarn
: if you use Yarn; -
npm i
/npm install
: if you use NPM
-
-
Now please verify if you have 2 Docker containers:
Mongo
andMongo2
andRedis
; -
if you have the containers you only need to run (for each folder):
-
On Backend (
backend/
):-
yarn start:dev
(using Yarn); -
npm run start:dev
(using NPM).
-
-
On Frontend (
frontend/
):-
yarn dev
(using Yarn); -
npm run dev
(using NPM).
-
-
On Backend (