You can check the application in production here: https://gratibox-two.vercel.app/
- Clone the backend repository
git clone https://github.com/victordurco/gratibox-api
- Clone the frontend repository
git clone https://github.com/victordurco/gratibox
- Install NPM packages in frontend AND backend folders
npm install
- Create the dev and test database using PostgreSQL
CREATE DATABASE gratibox_test;
CREATE DATABASE gratibox_dev;
- Import DATABASE.sql to both databases (it's located at the root of the backend repository)
pg_dump gratibox_dev < path/to/DATABASE.sql
pg_dump gratibox_test < path/to/DATABASE.sql
- Put the database information in the .env.dev and .env.test files in the backend repository.
To start the development server, run:
npm run start:dev
To start the frontend, run:
npm start