A Wagtail implementation of the NHSX website.
Clone the repository:
git clone https://github.com/nhsx/nhsx-website.git
Run the setup script:
script/setup
This 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/server
The 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/test
For more on the approach to testing, see docs/testing.md
To run the Wagtail console:
script/console
To generate migrations:
script/manpy makemigrations
To run migrations:
script/manpy migrate
You can also run a number of other manage.py
scripts with
the following command:
script/manpy COMMAND
You should run pre-commit init
so that your code changes will be linted and not fail CI.
Released under the MIT license