Name: the-phantom-mask
Owner: Sunlight Labs
Description: Lightweight web app to courier email messages to phantom-of-the-capitol using postmark.
Created: 2015-03-24 22:01:56.0
Updated: 2017-03-13 02:06:13.0
Pushed: 2016-02-20 01:11:35.0
Homepage: null
Size: 17106
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Lightweight Flask web app to courier email messages via Postmark to be processed by an instance of Phantom of the Capitol.
This project is still a work in progress so the README will be updated as it finalizes. In the meantime, you can get a working development environment set up by doing the following.
pip install -r requirements.txt
mv config/settings.py.example config/settings.py
YOU WILL NEED TO CONFIG THISconfig/settings.py
python tasks/admin.py setup_test_environment
to create initial schema for database & create test datapython run.py
to run app locally for development.bin/deploy.sh
and fabfile.py
for deploying to a production environment.We use Gulp to build our static assets. To set this up:
npm install
to install package dependencies. If npm isn't installed, follow these instructions to do so.npm install -g gulp
for the gulp command line client if Gulp isn't installed.python run.py
to run app locally for development.gulp watch
to watch Sass and Javascript files for changes and compile them on the fly.PHANTOM_API_BASE
variable in config/settings.py
/postmark/inbound
endpoint found in app/urls.py
brew install redis
, sudo apt-get install redis-server
)$ redis-server
To process emails, you'll need to point your postmark server inbound webhook to “python tasks/admin.py simulate_postmark_message <from_email> <to_oc_email>
.
If you use this script to simulate postmark messages then keep in mind that if APP_DEBUG=True
in config/settings.py
then live emails will not send (unless the <from_email>
argument is in the list in ADMIN_EMAILS
- also
in config/settings.py
).
You can reset a user's acceptance of the terms of service by running tasks/admin.py reset_tos <email>
.
This will make it so a user has to go through the signup process again.
Additionally, it will also allow all previously sent messages by the user to be sent again.
Code released under the MIT license. Design released under Creative Commons.