Skip to content

Commit

Permalink
Merge pull request #917 from airqo-platform/ft-netmanagerEnvSample
Browse files Browse the repository at this point in the history
Creating .env.sample file and updating README.md according to it.
  • Loading branch information
Baalmart authored Nov 3, 2022
2 parents 4cf9861 + 57f6392 commit cebb6e5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
16 changes: 16 additions & 0 deletions netmanager/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
REACT_APP_BASE_URL=https://staging-platform.airqo.net/api/v1/
REACT_APP_BASE_ANALYTICS_URL=
REACT_APP_BASE_AUTH_SERVICE_URL=
REACT_APP_BASE_DATA_MANAGEMENT_URL=
REACT_APP_BASE_DEVICE_MONITORING_URL=
REACT_APP_BASE_DEVICE_REGISTRY_URL=
REACT_APP_BASE_LOCATE_URL=
REACT_APP_BASE_LOCATION_REGISTRY_URL=
REACT_APP_BASE_PREDICT_URL=
REACT_APP_MAX_CONFIDENCE_INTERVAL=
REACT_APP_CLOUDINARY_NAME=abcdef
REACT_APP_CLOUDINARY_PRESET=abcdef
REACT_APP_MAPBOX_TOKEN=pk.ey123abc
REACT_APP_JIRA_KEY=abcdef
NODE_PATH=src/
PORT=5000
17 changes: 10 additions & 7 deletions netmanager/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
# Netmanager Application

This application is used for monitoring, device registration, location registration. Can be accessed here: https://staging-platform.airqo.net/ and https://platform.airqo.net/

## Local Setup

npm is our package manager of choice here. Check out setup instructions [here](https://nodejs.org/dist/) if you don't have it installed already. <br/><br/>
**Note: This project is currently using node version 14.**

To run the app, enter the project directory <br/>
**a) Add the `.env` file to the root folder.** You can find it [here](https://drive.google.com/drive/folders/1RYuukiTYgVxMBlSa4K8miLYiM_W4T86o)<br/>

**a) Add the `.env` file**

You need to fill actual values to the environment variables while creating the respective `.env` file from [.env.sample](./.env.sample) file.
Note that the variables with no (dummy)values are not required to get the app up and running.

**b) Install all the needed dependencies**



npm install

**c) Run in Development mode**


npm run dev

**d) Run in Staging mode**


npm run stage

**e) Run in Production mode**


npm run prod

Now, the application should be running on `http://localhost:5000`.
Now, the application should be running on `http://localhost:5000`.

0 comments on commit cebb6e5

Please sign in to comment.