Skip to content

devalparikh/Findr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Findr

Setup

  1. Setup frontend (http:https://localhost:3000/ or http:https://localhost:8000/)

    1. cd frontend
    2. npm install
    3. npm run-script build
    4. add .env file with frontend environment variables
  2. Setup backend (http:https://localhost:8000/)

    1. Return to the root directory cd ..
    2. cd backend
    3. npm install
    4. add .env file with backend environment variables
  3. Setup root

    1. Return to the root directory cd ..
    2. npm install

Run

  • To run development environment npm run dev or
  • To run production environment npm run start

Production

Backend Environment Variables

  • NODE_ENV - The environment type - example: "production"
  • PORT- The port that server.js runs
  • JWT_KEY - Secret used to generate and secure JWTs
  • ATLAS_URI - URI to connect to MongoDB

Frontend Environment Variables

  • REACT_APP_MAPBOX_API_KEY - The MapBox API key