Skip to content

Snippet is an app that allows educators to view or publish insights about program applications in NSW schools.

License

Notifications You must be signed in to change notification settings

reekypete/cese-snippet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snippet

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.

Requirements

We recommend using nvm to manage Node versions.

Client

Build Status

Test Coverage

View Readme.

Functions

Serverless Functions that support the demo environment.

In the real environment. only the client app is deployed to Department of Education cloud services. Here the client app also uses APIs provided by the Department.

As Functions is a project aid only, documentation is not provided.

But I just want to play with the app!

Ok ok ok!

The client application can be run along with a mock api that does not require a database.

  1. Navigate to ./client
cd client 
  1. The first time, install dependencies:
yarn install 
  1. Run the mock API:
yarn api
  1. Open a second terminal window and run the app:
yarn dev

Developing

You can develop using the mock API described above or by using the Serverless environment connected to a MongoDB instance.

Install a MongoDB database called "Snippet" and then run a third terminal window for the database:

mongod

You can run Function containers individually or use Firebase to run all of the containers at the once:

firebase serve --only functions,hosting

To work on the client app, you will need to launch a development session. Alternatively built files are served in combination with firebase serve from ./client/build

cd client
yarn dev

Todo: this documentation section could be improved.

Deploy

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

Rollback

To rollback a release:

git checkout -b release-20160101
git tag `date "+release-%Y%m%d%H%M%S"` && git push --tags

Contributing

For help on setting up the repo locally, building, testing, and contributing please see Contibuting.

Code of Conduct

All developers who wish to contribute through code or issues, take a look at the Code of Conduct.

License

MIT.

About

Snippet is an app that allows educators to view or publish insights about program applications in NSW schools.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.6%
  • CSS 1.9%
  • HTML 1.5%