Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjhea0/flask-landing
simple landing page to collect prelaunch emails
https://github.com/mjhea0/flask-landing
flask landing-page python
Last synced: about 2 months ago
JSON representation
simple landing page to collect prelaunch emails
- Host: GitHub
- URL: https://github.com/mjhea0/flask-landing
- Owner: mjhea0
- Created: 2013-08-20T22:51:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T20:19:17.000Z (over 1 year ago)
- Last Synced: 2024-10-12T07:08:10.023Z (2 months ago)
- Topics: flask, landing-page, python
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 67
- Watchers: 5
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-Landing
[![Build Status](https://travis-ci.org/mjhea0/Flask-Landing.svg?branch=master)](https://travis-ci.org/mjhea0/Flask-Landing)
Boilerplate project template for a simple landing page to collect pre-launch emails. Powered by Flask, of course. <3
--
Aside for collecting emails from the app itself, you can also use it as back-end API for collecting emails from other landing pages.
## QuickStart
### Install
1. Clone
1. Create and activate a virtualenv
1. Install the dependencies### Config
Update *app/config.py*.
#### Set Environment Variables
```sh
$ export APP_SETTINGS="app.config.DevelopmentConfig"
```or
```sh
$ export APP_SETTINGS="app.config.ProductionConfig"
```#### Create DB
```sh
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data
```#### Migrating DB
Use the following after adding a columns to the models in *models.py* to create the needed columns in your database:
```sh
$ python manage.py db migrate
$ python manage.py db upgrade
```#### Run
```sh
$ python manage.py runserver
```#### Testing
Without coverage:
```sh
$ python manage.py test
```Without coverage and limited to a module inside "tests" directory
```sh
$ python manage.py test --test_name=test_endpoints
```With coverage:
```sh
$ python manage.py cov
```