Skip to content

Latest commit

 

History

History
72 lines (42 loc) · 948 Bytes

README.md

File metadata and controls

72 lines (42 loc) · 948 Bytes
  1. Add a .env file with following parameter:
Frontend .env content:

REACT_APP_API_SERVER=http://localhost:8080
REACT_APP_FACEBOOK_APP_ID={ your app id }
HTTPS=true


Backend .env content:

JWT_SECRET={ your jwt secret key}
DB_NAME={database_name}
DB_USERNAME={database_username}
DB_PASSWORD={database_pw}
  1. Create a database for backend
a. install PostgreSQL Server

b. command: sudo service postgresql start

c. command: sudo su postgres

d. command: createdb {database_name}

e. command: psql {database_name}

f. command: CREATE USER {database_name} WITH PASSWORD '{database_pw}' SUPERUSER;

g. command: install knex

h. command: knex migrate:latest

i. command: knex seed:run

For backend:

  1. Go inside backend folder

  2. Open terminal

yarn install

node index.js

For frontend:

  1. Go inside frontend folder

  2. Open terminal

yarn install

yarn start

To build or update sass:

yarn run sass