- Notifications
You must be signed in to change notification settings - Fork23
topcoderinc/dsp-frontend
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- node v6 (https://nodejs.org)
npm installnpm run dev- Navigate browser to
http://localhost:3000
Configuration files are located underconfig andsrc/config directories.See Guildhttps://github.com/lorenwest/node-config/wiki/Configuration-Files
| Name | Description |
|---|---|
PORT | The port to listen |
GOOGLE_API_KEY | The google api key see (https://developers.google.com/maps/documentation/javascript/get-api-key#key) |
API_BASE_URL | The base URL for Drone API |
REACT_APP_API_BASE_PATH | The React app api base path` |
REACT_APP_SOCKET_URL | The React app app socket url` |
REACT_APP_AUTH0_CLIEND_ID | The React app auth0 client id` |
REACT_APP_AUTH0_DOMAIN | The React app auth0 domain` |
Environment variables will be loaded from the .env file during build. Create the .env file based on the provided env.example
npm i
npm run <script> | Description |
|---|---|
build | Build the app |
start | Serves the app in prod mode (usebuild first). |
dev | Start app in the dev mode. |
lint | Lint all.js files. |
lint:fix | Lint and fix all.js files.Read more on this. |
test | Run tests usingmocha-webpack for all `*.spec.(js |
NODE_ENV=production npm run buildNODE_ENV=production npm run start- Heroku CLI
npm run heroku:[ENV]:initnpm run heroku:[ENV]:deploynpm run heroku:[ENV]:deploynpm run heroku:[ENV]:init will create a new git remote in current git repository and a new app in remote server.
npm run heroku:[ENV]:deploy line will push current branch to corresponding remote environment.
ENV can be 'prod', 'dev', 'staging', 'test'.
About
React fronted to drone series
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors5
Uh oh!
There was an error while loading.Please reload this page.