Giter VIP home page Giter VIP logo

flask's Introduction

To Do List - Flask Implementation

Author: Bahram Aghaei

Python Versions: 3.6+ only

Extensions that has been used:

  • Flask-Restful
  • Flask-JWT
  • Flask-SQLAlchemy
  • Flask-Bcrypt
  • Flask's Blueprint to make the project modular

Getting Started

Navigate to a directory that you want to work in and clone down this repository.

$ git clone https://github.com/GreatBahram/flask.git

For Development

Move into the cloned directory and start a new Python 3 virtual environment. You should be using Python 3.6 or later.

$ cd flask
$ pip3 install -r requirements.txt
$ python3 run.py

In your virtual environment, set as environment variables the URL to the Postgres database that you intend to use for development, as well as the FLASK_APP environment variable with the path to the repository's run.py file. For something closer to bulletproof, use the absolute path to the file. Note that on my machine I don't need a username or password to access my postgres databases, but your own results may vary.

export DATABASE_URL=sqlite:///database.db
export FLASK_APP=app.py

Initialize your database using the provided initializedb.py file. If you want to be able to drop tables before you create them, set an environment variable of DEVELOPMENT to 'True'.

$ python initializedb.py

In order to run the application, type flask run. If all your stuff is configured properly, your development server should be running on port 5000.

flask's People

Contributors

greatbahram avatar nhuntwalker avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.