DEV Community

Cover image for SIMPLE BLOG APP
Priscillah Nalubega
Priscillah Nalubega

Posted on

1

SIMPLE BLOG APP

SIMPLE BLOG APP

This is a simple blog app where users can:

  • Register and login into the app
  • See posts
  • Create posts
  • Update posts
  • And delete posts

The user can also logout of the app

Requirements

To be able to run the the program on your local machine you should have the following

note: its been tested on windows 10, python 3.9.6
  • install a virtual environment
  • install flask
  • install wtforms for the login and registration forms
  • sqlalchemy for the database
  • install bcrypt to hash the passwords

Setting up the environment

install a virtual environment on your windows machine: In your Windows command shell prompt type in:

pip install virtualenv
Enter fullscreen mode Exit fullscreen mode

Once inside the project folder run:

virtualenv <env>
Enter fullscreen mode Exit fullscreen mode

the activate your virtual environment:

.\<env>\Scripts\activate
Enter fullscreen mode Exit fullscreen mode

To Run the code

still in your virtual enviroment:

set FLASK_APP=run.py
Enter fullscreen mode Exit fullscreen mode

then

flask run
Enter fullscreen mode Exit fullscreen mode

you will now be able to explore the app on your local machine

the source code to the app is here

thanks for reading.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay