Skip to content

nohaelgendy/flask-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLASK Boilerplate

This is a flask microframework boilerplate app

Setup

  1. Install python if you don't have it.

  2. Clone this repository.

  3. Navigate into the project directory:

    $ cd flask-boilerplate
  4. Create a new virtual enviroment:

    Note: When running the commands, you may need to type python3/pip3 instead of python/pip depending on your setup.

    $ python -m venv venv
    $ . venv/bin/activate
  5. Install the dependencies (python pacakages) listed in "requirements.txt" file:

    $ pip install -r requirements.txt
  6. Create the enviroment variables file ".env":

    $ touch .env
  7. Add this variables to the .env file:

     FLASK_APP=app
     FLASK_ENV=development
  8. Run the app:

    $ flask run

Links

Understand

Why '.env' file ?

We use .env to store environment variables for our application, which allows us to keep sensitive information, such as API keys and passwords, out of our codebase and hidden from others.

required library: --> python-dotenv

About

Flask Boilerplate App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published