Code Monkey home page Code Monkey logo

blog-with-flask's Introduction

<<<<<<< HEAD

blog-with-flask

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.

Requirements

To successfully run this web app, one needs to fulfill the following requirements:

  1. Have postgresql db installed and create (or import) the database named sadarwa
  2. python version: 3.x
  3. Flask (if you don't have one installed): $ pip install flask
  4. SQLAlchemy (a python based Object Relational Model -ORM): $ pip install -U Flask-SQLAlchemy
  5. flask-login (for handling login in and out): $ pip install Flask-Login
  6. WTForm (for generating and validating forms): $ pip install wtform
  7. 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

API Endpoionts

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.

blog-with-flask

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.

Requirements

To successfully run this web app, one needs to fulfill the following requirements:

  1. Have postgresql db installed and create (or import) the database named sadarwa
  2. python version: 3.x
  3. Flask (if you don't have one installed): $ pip install flask
  4. SQLAlchemy (a python based Object Relational Model -ORM): $ pip install -U Flask-SQLAlchemy
  5. flask-login (for handling login in and out): $ pip install Flask-Login
  6. WTForm (for generating and validating forms): $ pip install wtform
  7. Jinja2 (in case in if it is not installed): $ pip install jinja2
  8. 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

API Endpoionts

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

blog-with-flask's People

Contributors

aminubishir avatar

Stargazers

AdrianF avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.