Snippet is an app built in Fellowship with NSW Education Centre for Education Statistics and Evaluation in 2017-18.
Snippet allows educators to view or publish insights about program applications in NSW schools.
This repository contains a web application client that is exported to an internal application at NSW Education.
We recommend using nvm to manage Node versions.
This app is built from create-react-app
Data management
UI
Mock API
- Use the correct Node version
nvm use
- The first time, install dependencies:
yarn install
- Run the mock API:
yarn api
- Open a second terminal window and run the app:
yarn dev
# install dependencies
yarn
# serve with hot reload at localhost:8080
yarn start
# build for production with minification
yarn build
# test the production build locally
yarn serve
# run test watcher
yarn test
# run test on individual file
yarn test store/rootReducer
# run the mock server
yarn api
# start storybook (develop UI components)
yarn storybook
Debug with React with React Dev Tools for Chrome.
Debug the state layer with Redux devtools extension.
Enable logging from the console with Bows.
By typing this in to the Browser Console:
localStorage.debug = true
Deploy to the demo environment happens from CI off tag creation.
To tag a release for deployment:
git tag `date "+release-%Y%m%d%H%M%S"` && git push --tags
To rollback a release:
git checkout -b release-20160101
git tag `date "+release-%Y%m%d%H%M%S"` && git push --tags
For help on setting up the repo locally, building, testing, and contributing please see Contibuting.
All developers who wish to contribute through code or issues, take a look at the Code of Conduct.
MIT.