Check out the blog post.
- Fork/Clone
- Activate a virtualenv
- Install the requirements
Update project/server/config.py, and then run:
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
or
$ export APP_SETTINGS="project.server.config.ProductionConfig"
Set a SECRET_KEY:
$ export SECRET_KEY="change_me"
Set the secret key for your Google ReCaptcha:
$ export RECAPTCHA_SECRET_KEY="change_me"
Set the secret key for your Google ReCaptcha:
$ export DATA_DIR="directory_with_data_files"
Set the Amazon SES variables for user confirmation and password reset:
$ export SES_MAIL_SERVER="region"
$ export SES_SMTP_USERNAME="username"
$ export SES_SMTP_PASSWORD="password"
Create the databases in psql
:
$ psql
# create database repurpos_db;
# create database repurpos_db_test;
# \q
Create the tables and run the migrations:
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py runserver
Access the application at the address http://localhost:5000/
Want to specify a different port?
$ python manage.py runserver -h 0.0.0.0 -p 8080
Without coverage:
$ python manage.py test
With coverage:
$ python manage.py cov