MIT-CAVE / cave_static

A react based static web app to be used as a UI and data consumer for the CAVE app.
Apache License 2.0
0 stars 1 forks source link

cave_static

A react based static web app to be used as a data consumer for the cave_app.

Installation

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

Clean Code

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

Run in development

From the project root:

npm start

Create a static build

  1. Edit your .env file accordingly
  2. Build the app
npm run build

Analyze Bundle Size and Dependency Cost

  1. Install source-map-explorer globally:
  1. Edit your .env file accordingly
  1. Create a static build (see above)
  2. Analyze your bundle

Deploy your static build

  1. Edit your .env file accordingly
  2. Deploy your static build:
./deploy.sh
  1. (First Time Only) Route a Route 53 Subdomain to the Cloudfront distribution

License Notice

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.