<<<<<<< HEAD
A personal blog web app developed using python's Flask framework. This project is great start for anyone that want to develop a blog web app using Flask framework. It's also a great resource for developers that want explore things like flask framework, Postgresql, SQLAlchemy orm, flask-login etc.
To successfully run this web app, one needs to fulfill the following requirements:
- Have postgresql db installed and create (or import) the database named
sadarwa
- python version: 3.x
- Flask (if you don't have one installed):
$ pip install flask
- SQLAlchemy (a python based Object Relational Model -ORM):
$ pip install -U Flask-SQLAlchemy
- flask-login (for handling login in and out):
$ pip install Flask-Login
- WTForm (for generating and validating forms):
$ pip install wtform
- Bootstrap 4: Download and put it in the /static folder, note that the name of the bootsrap folder should be
bootstrap
as specified in the tag used (but you can still change it if you so wish)
To run the web app, navigate the project folder in your shell and then run the web app by typing python main.py
To show how easy it is to make APIs using flask sqlalchemy, we provide one api end point (accessible vai /comments/<int:user_id>
that will return all the comments made a user in form json.
A personal blog web app developed using python's Flask framework. This project is great start for anyone that want to develop a blog web app using Flask framework. It's also a great resource for developers that want explore things like flask framework, Postgresql, SQLAlchemy orm, flask-login etc.
To successfully run this web app, one needs to fulfill the following requirements:
- Have postgresql db installed and create (or import) the database named
sadarwa
- python version: 3.x
- Flask (if you don't have one installed):
$ pip install flask
- SQLAlchemy (a python based Object Relational Model -ORM):
$ pip install -U Flask-SQLAlchemy
- flask-login (for handling login in and out):
$ pip install Flask-Login
- WTForm (for generating and validating forms):
$ pip install wtform
- Jinja2 (in case in if it is not installed):
$ pip install jinja2
- Bootstrap 4: Download and put it in the /static folder, note that the name of the bootsrap folder should be
bootstrap
as specified in the tag used (but you can still change it if you so wish)
To run the web app, navigate the project folder in your shell and then run the web app by typing python main.py
To show how easy it is to make APIs using flask sqlalchemy, we provide one api end point (accessible vai /comments/<int:user_id>
that will return all the comments made a user in form json.
ce43ec032012dd09721e45abed3b9006007c9996