This is a simple Blog created with FLASK Microframework
- Create Account
- Login.
- View Posts, Edit post, delete post
- Update Profile
- Reset password via email
-
Install Virtualenv
pip install virtualenv
create a virtualenv in your cloned repo
virtualenv venv
-
Activate virtualenv-Windows
source venv/Scripts/activate
-
Install dependencies
pip install -r requirements.txt
-
Configurations Edit the profile and add the following: use
code ~/bash_profile
with VScodeset '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')
- Start the server
python run.py