2015-11-25 15:29:12 +00:00
|
|
|
[](https://api.travis-ci.org/alphagov/notifications-admin.svg?branch=master)
|
2015-11-23 14:55:37 +00:00
|
|
|
|
2015-11-18 16:41:49 +00:00
|
|
|
|
2015-11-20 10:31:28 +00:00
|
|
|
# notifications-admin
|
|
|
|
|
Application to handle the admin functions of the notifications application.
|
2015-11-18 16:32:15 +00:00
|
|
|
|
2015-11-23 14:37:29 +00:00
|
|
|
### Features of this application:
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Register users
|
|
|
|
|
<li>Register services
|
|
|
|
|
<li>Download CSV for an email or sms batch
|
|
|
|
|
<li>Show history of notifications
|
|
|
|
|
<li>Reports
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
### Create a virtual environment for this project
|
2015-11-25 15:29:12 +00:00
|
|
|
mkvirtualenv -p /usr/local/bin/python3 notifications-admin
|
|
|
|
|
|
2015-11-23 14:31:14 +00:00
|
|
|
|
2015-11-23 14:37:29 +00:00
|
|
|
### GOV.UK frontend toolkit
|
2015-11-23 14:31:14 +00:00
|
|
|
The GOV.UK frontend toolkit is a submodule of this project.
|
|
|
|
|
To get the content of the toolkit run the following two commands
|
2015-11-25 15:29:12 +00:00
|
|
|
|
|
|
|
|
git submodule init
|
|
|
|
|
git submodule update
|
2015-11-23 14:31:14 +00:00
|
|
|
|
2015-11-25 15:29:12 +00:00
|
|
|
### To run the sample application run:
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
./scripts/run_app.sh
|
2015-11-23 14:31:14 +00:00
|
|
|
|
2015-11-25 15:29:12 +00:00
|
|
|
url to test app:
|
|
|
|
|
|
|
|
|
|
localhost:6012/helloworld
|
|
|
|
|
|
2015-11-23 14:31:14 +00:00
|
|
|
|
2015-11-25 15:29:12 +00:00
|
|
|
### Database
|
|
|
|
|
Run the following command to create the database
|
|
|
|
|
|
2015-12-10 09:08:26 +00:00
|
|
|
./scripts/bootstrap.sh
|
2015-11-25 15:29:12 +00:00
|
|
|
|
|
|
|
|
### Domain model
|
2015-11-23 14:39:31 +00:00
|
|
|
|
2015-11-25 15:29:12 +00:00
|
|
|
All the domain models are defined in the [models.py](https://github.com/alphagov/notifications-admin/blob/master/app/models.py) file.
|
2015-11-23 14:39:31 +00:00
|
|
|
|
2015-11-23 16:18:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|