A Wagtail implementation of the NHSX website.
Clone the repository:
git clone https://github.com/nhsx/nhsx-website.gitRun the setup script:
script/setupThis will create a docker-compose.env file, initialize the
containers, run the migrations, and set up a superuser with the
username [email protected] and the password admin.
You can then run the site with the following command:
script/serverThe site will then be available at "http://localhost:5000".
You may also want to give the site a sensible hostname. Open /etc/ hosts and add the following to make the site available at
"http://nhsx.test:5000".
0.0.0.0 nhsx.test
The following script runs the tests:
script/testFor more on the approach to testing, see docs/testing.md
To run the Wagtail console:
script/consoleTo generate migrations:
script/manpy makemigrationsTo run migrations:
script/manpy migrateYou can also run a number of other manage.py scripts with
the following command:
script/manpy COMMANDYou should run pre-commit init so that your code changes will be linted and not fail CI.
Released under the MIT license