Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

React fronted to drone series

NotificationsYou must be signed in to change notification settings

topcoderinc/dsp-frontend

Repository files navigation

Requirements

Quick Start

  • npm install
  • npm run dev
  • Navigate browser tohttp://localhost:3000

Configuration

Configuration files are located underconfig andsrc/config directories.See Guildhttps://github.com/lorenwest/node-config/wiki/Configuration-Files

NameDescription
PORTThe port to listen
GOOGLE_API_KEYThe google api key see (https://developers.google.com/maps/documentation/javascript/get-api-key#key)
API_BASE_URLThe base URL for Drone API
REACT_APP_API_BASE_PATHThe React app api base path`
REACT_APP_SOCKET_URLThe React app app socket url`
REACT_APP_AUTH0_CLIEND_IDThe React app auth0 client id`
REACT_APP_AUTH0_DOMAINThe 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

Install dependencies

npm i

Running

npm run <script>Description
buildBuild the app
startServes the app in prod mode (usebuild first).
devStart app in the dev mode.
lintLint all.js files.
lint:fixLint and fix all.js files.Read more on this.
testRun tests usingmocha-webpack for all `*.spec.(js

Local deploy

NODE_ENV=production npm run buildNODE_ENV=production npm run start

Heroku deploy

Prerequisites

  • Heroku CLI

set up

npm run heroku:[ENV]:initnpm run heroku:[ENV]:deploy

update

npm run heroku:[ENV]:deploy

npm 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

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp