This service replaces the deals for schools guidance.
Find a DfE approved framework for your school helps anyone within schools with a responsibility for buying/procurement to find a framework which best suits their needs.
This help is given via a decision tree navigation which asks simple multiple choice questions, each answer narrowing down the frameworks until either one or a small number of frameworks can be recommended. The recommendations are links to frameworks offered by 3rd parties, as such any purchase/financial transaction takes place on the 3rd party site.
This is a NodeJS/Express based Azure WebApp with a Mongo (Cosmos) database and templates rendered by Nunjucks.
- The docker image will be built automatically on push to
master
. It can be run manually uisng the build-and-push-docker-image action. - Inspect the package repository to see if your new docker image has been pushed.
- Go to the releases section in Azure DevOps and select the environment you wish to deploy to. - Either V2 PUBLIC Dev, V2 PUBLIC Test or V2 PUBLIC Prod.
- Click "create release" and populate the
Docker_Build_Tag
variable with the tag of the docker image you wish to deploy. i.e. If you wish to deploy2edddb0
fill inDocker_Build_Tag
as2edddb0
.
For dev environment...
$ npm install
For production environment...
$ npm install --production --no-optional
...this excludes any dependencies required for testing the service or developing the service.
Start the service in it's normal state Open http://localhost:5000 to view it in the browser.
Start the service in dev mode, such that the service is restarted each time changes are made, SASS is recompiled etc.
Run all tests: jhint, mocha and cucumber
Run jshint
Run Mocha unit tests
Run cucumber tests
This project uses NodeJS, Express and Mongo (Azure Cosmos DB).
MONGO_READONLY DOC_STATUS 4000 PORT
Defines the port for serving the app, defaults: 4000
REQUIRED
The connection string to use to connect to a mongo database, it should be as per the READONLY connection string shown in the Azure Cosmos DB Connection String section with the addition of the database name added after the portnumber.
Options are DRAFT
or LIVE
, defaults to LIVE
.
This setting affects which DB record is used in this instance of the app, on Production the value should be LIVE
but on a test env it's useful to display the DRAFT
version, in order to gain sign-off on proposed changes before promoting the record to LIVE
and archiving the previous instance.