rishabh11336 / Blogsite

MAD-1 project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub GitHub repo size

Bloglite

create virtual enviroment

command: pip install virtualenv
command: virtualenv <venv_name>

Learn more about virtual enviroment refer to

https://medium.com/@asusrishabh/requirements-txt-in-python-947b0b43bbe6
  • use requirement.txt to install compatible packages
command: pip install -r requirment.txt
  • To run flask server
command: python main.py

Description

Bolglite is a simple blog application like Instagram, twitter or Linkedin, It is a multi user app with login, feed, post/blog, with various features like follow/unfollow, edit profile/post and search.
This consist of two APIs for CRUD operation on USER and BLOG/POST

  • Technologies used
  1. Python (Programming Language)
  2. Flask (Web Framework)
  3. HTML (HTML Doc.)
  4. Bootstrap (Frontend)
  5. Flask-RESTful==0.3.9 (RESTAPIs)
  6. Flask-SQLAlchemy==3.0.2 (SQLite connection)
  7. Jinja2==3.1.2 (HTML injection)
  8. SQLAlchemy==1.4.45 (SQLite connection)
  9. Werkzeug==2.2.2 ( To secure file)

APIs are for CRUD Operation on USER & BLOG/POST

  • For UserAPI
GET:- localhost:8080/users/{userid}
POST:- localhost:8080/users/
PUT:- localhost:8080/users/{userid}
DELETE:- localhost:8080/users/{userid}
  • For POST/BLOG_API
GET:- localhost:8080/posts/{postid}
POST:- localhost:8080/posts/
PUT:- localhost:8080/posts/{postid}
DELETE:- localhost:8080/posts/{postid}

(check API.pdf for hints to check APIs)

DB Schema Design

image

└── Blog Site
    ├── static
    ├── templates
    ├── api.py
    ├── main.py
    ├── controller.py
    ├── model.py
    ├── requirement.txt
    ├── database.sqlite3

About

MAD-1 project

License:MIT License


Languages

Language:HTML 50.4%Language:Python 48.4%Language:CSS 1.2%