/gratibox-back

app to subscribe and receive at home gratiboxes full of random teas, incenses, organic foods and gratitude!

Primary LanguageJavaScript


Logo

Gratibox

Be grateful in life 🙏, it can always get worse 😰
Explore the docs »
View Demo

About the project


Above we see the home page of the app. Subscribe in it and you will receive random boxes in your home, with many sort of items varying from teas to organic products.

You will not choose the item, but you can always choose to be grateful for what you have received!


Built with


Getting Started

Prerequisites

  • npm

Installation

  1. Clone backend repo
git clone https://github.com/cybalencar96/gratibox-back.git
  1. Install dependencies executing comand in root
npm i
  1. Clone frontend repo in a different folder
git clone https://github.com/cybalencar96/gratibox-front.git
  1. Install frontend dependencies executing command in root
npm i
  1. Create a .env.development file in frontend root folder with following variable and value
REACT_APP_SERVER_URL=http://localhost:4000
  1. Create a .env.dev file in backend root folder with following variables
DB_USER
DB_HOST
DB_PASS
DB_PORT
DB_NAME
  1. Create a postgres database and fill .env.dev with database credentials
DB_USER=postgres
DB_HOST=localhost
DB_PASS=123456
DB_PORT=5432
DB_NAME=gratibox

  1. Run (copy & paste) the dump.sql statements in database

How to run

  1. Start backend server
npm run dev
  1. Start frontend
npm start