Coder Social home page Coder Social logo

ivnvxd / flask-blog Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15.12 MB

A lightweight multi-user web blog using Python and Flask

License: MIT License

JavaScript 2.06% CSS 26.11% HTML 30.88% Python 40.95%
bootstrap css flask html javascript python sqlalchemy sqlite blog cs50x crud

flask-blog's Introduction

FlaskBlog

GitHub GitHub last commit

FlaskBlog is a simple web app made with Flask on top of Clean Blog theme by Start Bootstrap.

preview.png

Info

It is a lightweight multi-user web blog using Python and Flask

Application users if they are not logged in can view all the posts in database and view the full content of the posts. They also have the option to register using their username and password.
Registered and authorized users can add new blog posts, edit or delete existing ones (only authored by them), log out or change their password.

Database is built on SQLite. All DB Management is done with SQLAlchemy. Jinja template engine is used to dynamically build HTML pages.

Usage

  1. Clone this repository using: git clone https://github.com/venyxD/flask-blog.git
  2. Optional: Go to the project root directory and install the virtualenv library using pip and create a virtual environment. Run the following commands respectively:
    • pip install virtualenv
    • virtualenv venv
    • source venv/bin/activate
  3. Download and install all dependencies in the requirements.txt using pip install -r requirements.txt
  4. Start Flask’s built-in web server: $ flask run
  5. Open your browser and view the app by opening the link http://127.0.0.1:5000/
  • You are free to view recent posts, register, login add new posts etc.
  1. To reinitialize sample database run $ python init_db.py from tmp folder.

Tools used

  • Python 3
  • Flask 2.2.2
  • SQLite 3
  • SQLAlchemy
  • HTML5
  • CSS3
  • JavaScript
  • Bootstrap 5.1.3
  • Clean Blog 6.0.8
  • Font Awesome 6.1.3
  • Google Fonts API

flask-blog's People

Contributors

ivnvxd avatar

Stargazers

 avatar

Watchers

 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.