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
yarn
ornpm install
yarn start
ornpm start
- Browse to
https://localhost:8080
Note: you may replace yarn
with npm
if you aren't using yarn
yarn start
to start the webpack dev server for this repoyarn start-rails-api
to start the rails api server (looks in../campus-contacts-api
)yarn build
to generate minified output files. These files are output to/dist
.yarn build:analyze
to open a visualization of bundle sizes after buildingyarn test
to run karma tests onceyarn test-watch
to run karma tests on file changesyarn test-debug
to run karma tests in Chrome process for debugging with Chrome's dev toolsyarn lint
to 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 tomaster
will be deployed immediately to the production environment. - The
staging
branch deploys immediately to the staging environment. You can hard reset thestaging
to 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> -dev
to install tooling dependencies