- Build:
- Website: https://nahual-datos-voluntaries.herokuapp.com/
This project has Node.js as a server-side and React as front-end framework to create the UI.
- You can see the document here
- Using Data Mapper Pattern
- PostgreSQL v12.1
- Using Node.js buildpack.
nvm
: You can follow the following instructionsyarn
: You can follow the following instructionsnode
:nvm install 12.14.0
Stand on the repository root and execute: nvm use
yarn install
Runs the app in the development mode. Open http://localhost:5000 to view it in the browser.
yarn dev
The page will reload if you make edits.
For time saving and good practices, we use prettier. You only need to run the following instruction:
yarn format:all
yarn test
yarn lint
Builds the app for production to the build
folder.
yarn build
- Runs the database container in the background:
yarn db:start
- Runs up the database container:
yarn db:up
- Stops the database container:
yarn db:stop
- Creates the current NODE_ENV stage database
yarn db:create
- Creates the test database
yarn db:test:create
- Migrates the current NODE_ENV stage database
yarn db:migrate
- Migrates the test database
yarn db:test:migrate
- Drops the current NODE_ENV stage database
yarn db:drop
- Drops the test database
yarn db:test:drop
- Drops, creates and migrates the current NODE_ENV stage and test database
yarn db:all:reboot