command: pip install virtualenv
command: virtualenv <venv_name>
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
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
- Python (Programming Language)
- Flask (Web Framework)
- HTML (HTML Doc.)
- Bootstrap (Frontend)
- Flask-RESTful==0.3.9 (RESTAPIs)
- Flask-SQLAlchemy==3.0.2 (SQLite connection)
- Jinja2==3.1.2 (HTML injection)
- SQLAlchemy==1.4.45 (SQLite connection)
- Werkzeug==2.2.2 ( To secure file)
- 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}
└── Blog Site
├── static
├── templates
├── api.py
├── main.py
├── controller.py
├── model.py
├── requirement.txt
├── database.sqlite3