Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 933 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 933 Bytes

flask-boilerplate

This boilerplate is for beginners to quickly set up a simple web application with flask.

Getting Started

Prerequisites

  • Python 3.3 or higher

Project setup

# cloning the repo
$ git clone https://github.com/valanm22/flask-boilerplate.git
# move to the project folder
$ cd flask-boilerplate

Activating virtual environment

# creating venv
$ python3 -m venv your_env_name
# activating the venv
$ your_env_name\Scripts\activate
# installing the required packages
$ pip install -r requirements.txt

Running app

# exporting app to environment variable
$ set FLASK_APP=run.py
# mentioning environment type
$ set FLASK_ENV=development
# running app
$ flask run

License

This program is a free software under MIT license. Please see the LICENSE file in my repository for more info.