Skip to content

NehemiahLimo/Flask_Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Coverage Status

Flask Blog

Intro

This is a simple Blog created with FLASK Microframework

Functionalities

  1. Create Account
  2. Login.
  3. View Posts, Edit post, delete post
  4. Update Profile
  5. Reset password via email

Setup and installation-Windows

  1. Install Virtualenv

          pip install virtualenv

    create a virtualenv in your cloned repo

       virtualenv venv
  2. Activate virtualenv-Windows

         source venv/Scripts/activate
  3. Install dependencies

         pip install -r requirements.txt
  4. Configurations Edit the profile and add the following: use code ~/bash_profile with VScode

         set 'SECRET_KEY'=os.environ.get('your secret key')
         set 'SQLITE_DATABASE_URI'=os.environ.get('your db uri')
         set 'MAIL_USERNAME'=os.environ.get('EMAIL_USER')
         set 'MAIL_PASSWORD'=os.environ.get('EMAIL_PASS')
         

NB

  • You will need to set EMAIL_USER and EMAIL_PASS the os environment variables and provide email and password in the **__init__.py**
 app.config['MAIL_USERNAME'] = os.environ.get('EMAIL_USER')
 app.config['MAIL_PASSWORD'] = os.environ.get('EMAIL_PASS')
  1. Start the server
       python run.py
    

Author: NehemiahLimo

About

simple flask_blog app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages