Skip to content

Latest commit

 

History

History

cookbook-react

This project was bootstrapped with REACT-BOOTSTRAP-WOLOX.

Screens

This are the screens you can to choose for your app.

Components

This are the components you can to choose for your app.

Base Styles

BaseStyles

Deploy

npm run deploy environment

Where environment must match with the current branch and environment must have a .env file and a property in the aws.js configuration.

Valid environments are development, stage and master

Example

If you are in development branch:

  • .env.development exists
  • aws.js must have a development property with the keys for the corresponding bucket

Then, run npm run deploy development

Only building

To only build the application in a specific env, run:

npm run build environment

Starting

To start the server by default (development) run:

npm run start

To start a specific environment, run:

npm run start-env environment

Google Analytics

If you chose to add Google Analytics script to your project, then you need to configure the tracking ID. Set it adding REACT_APP_GA_TRACK_ID environment variable and the corresponding ID as value.

// .env.development
REACT_APP_GA_TRACK_ID=AU-9999999-1