mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-12 05:10:45 -04:00
a741c128da0217ee3109baf0cb84fb92c8aa11ad
The post register endpoint will send a random 5 digit code via sms and another via email. If either code fails to send, the user will not be created and the person can register again. The codes are saved to the session cookie, and expire in 1 hour. Another iteration of this story will save the codes to a database.
…
…
…
notifications-admin
Application to handle the admin functions of the notifications application.
Features of this application:
- Register users
- Register services
- Download CSV for an email or sms batch
- Show history of notifications
- Reports
Create a virtual environment for this project
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
To run the sample application run:
pip install -r requirements.txt
./scripts/run_app.sh
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 file.
Description
Languages
Python
69.3%
HTML
16.6%
JavaScript
11.1%
SCSS
0.9%
Nunjucks
0.7%
Other
1.4%