Before starting, you're gonna need to have Docker (v19.03.0+) and Expo installed on your machine, and Expo installed on your smartphone. Besides that, a text editor like VSCode is recommended.
- Create a file
.env
- Copy what is inside
.env.example
and paste in.env
; - If necessary, change the fields (Probably you won't have to do this, just if you want to)
- Open the terminal at the backend folder and type the command bellow to install the required packages:
> yarn
- Open the terminal at the backend folder and type the command bellow to build the backend's and the database's containers:
> docker-compose up --build -d
- Run all the migrations:
> docker exec shieldchat_backend yarn typeorm migration:run
- Watch the backend's logs:
> docker logs -f shieldchat_backend
- Open the terminal at the frontend folder and type the command bellow to install the required packages:
> yarn
- Open the terminal at the mobile folder and type the command bellow to install the required packages:
> yarn
- Create a file
.env
- Copy what is inside
.env.example
and paste in.env
, and change the fields as necessary
-
To start the backend, you have to setup the containers first. Once they're configured, start the shieldchat_db container, then the shieldchat_backend:
> docker start shieldchat_db
> docker start shieldchat_backend
-
In frontend folder, type the command bellow:
> yarn start
-
In mobile folder, type the command bellow:
> yarn start
If you want to change the fields in
.env
file after the first time, you have to start with the command bellow:> expo -c start
Made by Daniel Gustavo