Skip to content

ucdavis/cecdss

Repository files navigation

CEC Decision Support Web Application

Local setup

  1. Make sure you are using node v10
  2. npm install the dependencies

Choose your backend

This web front-end relies on the backend project https://github.com/ucdavis/cecdss-backend to be running and accessible. By default the backend is expected to be running at localhost:3000 but this can be changed in https://github.com/ucdavis/cecdss/blob/master/src/components/Shared/config.ts

Running the app

To run locally on port 3001 (the backend app will be running on 3000)

npm run dev

Application User Guide is available on our Wiki

Other options for advance users

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.