This project is also a skeleton of a "Large" Flask application with Twitter bootstrap integration.
This is the remote url for the app
$ git remote set-url origin https://github.com/rahulrrixe/twitterbot.git
or
$ git remote set-url origin git@github.com:rahulrrixe/twitterbot.git- Python 2.7 or 2.6
- Sqlite
- pip
Clone the repo to your computer in the desired folder:
$ git clone https://github.com/rahulrrixe/twitterbot.gitUse the requirements.txt to start dependencies in your virtualenv:
$ pip install -r requirements.txtStart the server:
$ fab run
or
$ fab grun # for gunicorn serverOpen the browser; http://localhost:5000 or with the terminal(OS X):
$ open http://localhost:5000Set the db parameters in the default_settings.py or in the production.cfg file and start python interactive shell within the flask environment:
$ python runserver.py db init
$ python runserver.py db migrate
$ python runserver.py db upgradeor
$ fab shell
>>> db.create_all()
>>> exit()note: You must first create the database in Postgresql. From running this command on heroku, you will need to use heroku run "fab shell"
Add unittests to the manage_tests.py file and then start running the tests:
$ fab testsThe cofiguration is given in config.py
For Heroku using gunicorn and production settings, do the following:.
Heroku Postgresql Database as primary, Check heroku.
The flask-bootstrap skeleton now supports migrations using Alembic and Flask-SQLAlchemy. Auto Generating Migrations are working!
$ python runserver.py db -m "Added users table"- Fork the repository on Github.
- Send a pull request and don't forget to add yourself to the AUTHORS.md file.
