This is the client-side interface for the 1977 NWC project. It is built with Create-React-App and react-router-dom. The backend it interacts can be found at https://github.com/DataAnalyticsinStudentHands/NWC_backend.
Run: npm run start after configuring the environment variables.
We are following standard procedures for a Create-React-App deployment using a build.
The development version will use a subfolder /dev and uses the package.json file.
In a nutshell run: npm run build
For staging: use pm2 to serve the build directory
For production, use the package_production.json file.
Run: npm run build
Move/copy the \build directory into web server document root directory.
We are using environment variables and the following must exists:
REACT_APP_API_URL =
REACT_APP_MAPBOX_ACCESS_TOKEN =
REACT_APP_PRODUCTION = false