Skip to content

Latest commit

 

History

History
94 lines (61 loc) · 2.96 KB

README.md

File metadata and controls

94 lines (61 loc) · 2.96 KB

Geo Location


Requirements


Installation

Client

For Client (or Frontend), just run

npm install --dir client

Server

For Server (or Backend), just run

npm install --dir server

Run Project

Once the dependencies are installed:

Client

For Frontend, just run:

npm run --dir client start

Server

For Backend, just run:

npm run --dir server dev

Environment

Each Project has their own specific environment variables, just go to their specific directory and add .env (dot env) file or copy the .env.example file and edit their values.

Server

For the Backend:

ENV VARIABLE DESCRIPTION TYPE REQUIRED DEFAULT VALUE
DB_CONNECTION For Mongo DB, usually the host string NO mongodb://localhost:27017
DB_NAME For Mongo DB, the database name string NO Geo
PORT The Port of the Server number NO 5000
TOKEN_EXPIRES_IN When will the Token expires, expressed in seconds or a string describing a time span zeit/ms. string | number YES N/A
TOKEN_SECRET The Token Secret for JWT string YES N/A

Client

For the Frontend:

ENV VARIABLE DESCRIPTION TYPE REQUIRED DEFAULT VALUE
REACT_APP_BASE_URL The Backend URL string NO http://localhost:5000

See documentation about Environment variables for Vite


Created by Renz Jaskin Agmata