This project was made using the follow technologies:
The API was built with the following functionalities:
- Create orphanage;
- List orphanages;
- List orphanage by id;
NOTE: you can find a Postman Collection at the
server/postman
folder, with examples of all the requests.
git clone https://github.com/mauroviniciussilva/happy.git
Create a .env
file in the /server
folder and setup your IP Adress:
BASE_IP_ADRESS=<ip_adress>:3333
cd server
yarn
As the project is using SQLite, it is not necessary to do any previous database installation or configuration to run the project. You just need to run the migrations with the following command:
yarn typeorm migration:run
yarn dev
NOTE: API will run at port 3333
As I'm using mapbox you need to have the token to render the map. You can see how to create one in the official docs. After getting the token, you must create an .env
file in the /web
folder with the following syntax:
REACT_APP_MAPBOX_TOKEN=<mapbox_token>
cd web
yarn
yarn start
NOTE: WEB Application will run at port 3000
To run the mobile project you need a phone with the expo app instaled or a emulator Android/iOS.
Create a .env
file in the /mobile
folder and setup your IP Adress to access the backend:
BASE_URL=http://<ip_adress>:3333
cd mobile
yarn
yarn start
When you run it, the expo developer tools should open on a browse window.
You need to read the QRCode with expo app, or run on emulator to see the result.