mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-04 16:11:11 -04:00
108536234: created users and roles data and domain model.
You will need to run the /scripts/bootstrap.sh to create the database for test and the app.
This commit is contained in:
31
README.md
31
README.md
@@ -1,4 +1,4 @@
|
||||
[](https://api.travis-ci.org/alphagov/notifications-admin.svg?branch=master)
|
||||
[](https://api.travis-ci.org/alphagov/notifications-admin.svg?branch=master)
|
||||
|
||||
|
||||
# notifications-admin
|
||||
@@ -14,23 +14,34 @@ Application to handle the admin functions of the notifications application.
|
||||
</ul>
|
||||
|
||||
### Create a virtual environment for this project
|
||||
mkvirtualenv -p /usr/local/bin/python3 notifications-admin
|
||||
mkvirtualenv -p /usr/local/bin/python3 notifications-admin
|
||||
|
||||
|
||||
### GOV.UK frontend toolkit
|
||||
The GOV.UK frontend toolkit is a submodule of this project.
|
||||
To get the content of the toolkit run the following two commands
|
||||
|
||||
git submodule init
|
||||
|
||||
git submodule update
|
||||
|
||||
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
### To run the sample application run:
|
||||
pip install -r requirements.txt
|
||||
./scripts/run_app.sh
|
||||
|
||||
pip install -r requirements.txt
|
||||
url to test app:
|
||||
|
||||
localhost:6012/helloworld
|
||||
|
||||
|
||||
### Database
|
||||
Run the following command to create the database
|
||||
|
||||
python app.py db upgrade
|
||||
|
||||
### Domain model
|
||||
|
||||
All the domain models are defined in the [models.py](https://github.com/alphagov/notifications-admin/blob/master/app/models.py) file.
|
||||
|
||||
./scripts/run_app.sh
|
||||
|
||||
url to test app: localhost:6012/helloworld
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user