A react based static web app to be used as a data consumer for the cave_app
.
Before you begin we suggest you use the version of node that this application version was developed on. We recommend using NVM to manage node environments.
You can install all dependencies and run the app by running npm run setup
from the root of the project.
npm run setup
chown
and chmod
your project folder to be able to execute from inside these files.sudo chown -R your-username . && sudo chmod -R 700 .
linter
,linter-eslint
.ESLint and Prettier automatically lint your staged changes before committing.
At any time, you can apply the lint
command to format your code to our standards by running:
npm run lint
From the project root:
npm start
client
, available in the browser at localhost:3000
cave_static
should be accessed through the cave_server
UI at localhost:8000
, and not directly at localhost:3000
..env
file accordinglynpm run build
BUILD_PATH
found in your .env
.PUBLIC_URL
specified in your .env
filePUBLIC_URL
matching that of your localhost
source-map-explorer
globally:npm install -g source-map-explorer
.env
file accordinglyGENERATE_SOURCEMAP=true
source .env && source-map-explorer $(find $BUILD_PATH/static/js* -name "main*.js")
.env
file accordingly./deploy.sh
Copyright 2022 Massachusetts Institute of Technology (MIT), Center for Transportation & Logistics (CTL)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.