campuscontacts.cru.org | stage.campuscontacts.cru.org | ccontacts.app/ | stage.ccontacts.app/
Use yarn for faster installs and to update the yarn lock file: https://yarnpkg.com/en/docs/install
yarnornpm installyarn startornpm start- Browse to
https://localhost:8080
Note: you may replace yarn with npm if you aren't using yarn
yarn startto start the webpack dev server for this repoyarn start-rails-apito start the rails api server (looks in../campus-contacts-api)yarn buildto generate minified output files. These files are output to/dist.yarn build:analyzeto open a visualization of bundle sizes after buildingyarn testto run karma tests onceyarn test-watchto run karma tests on file changesyarn test-debugto run karma tests in Chrome process for debugging with Chrome's dev toolsyarn lintto run eslint and lint the app's JS files
By default running this repo locally hits the stage API server. If you need to test against the local API, you can edit campusContactsApp.config.js.
- Development should be done against
master. Code merged tomasterwill be deployed immediately to the production environment. - The
stagingbranch deploys immediately to the staging environment. You can hard reset thestagingto whatever commit you want to deploy to stage or merge code into that branch.
- Use
yarn add <package-name>to install app dependencies - Use
yarn add <package-name> -devto install tooling dependencies