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
Released under the MIT license