Code Monkey home page Code Monkey logo

django-simple-blog's Introduction

Django-Simple-Blog ๐Ÿ“

Django Simple Blog is a MVP(Minimal Viable Product) blogging app in django, made as a pet project for educational purpose

DEMO

Django.Blog.mp4

Tech Stack

  • Frontend: HTML / CSS / Bootstrap (5.2)
  • Backend: Django (4.0.5) / Django-Rest-Framework (3.13.1)
  • Database: Postgres

Features:

  • Login / Register: abstract user class implemented for easy customisation as django-docs recommend
  • WYSIWYG Editor: TinyMCE used as text editor.
  • Image Uploading: Users can upload images for their posts, that will be converted into .webp format automatically,to save some space. Also images get into /media/posts/year/month/day/ to reduce load on a File System
  • DRF API: Api for future frontend side of the project. JWT not implemented because of simplicity of the project.
  • Posting / Editing: Registered users can post and edit own posts
  • Private posts: Users can make their posts private
  • Filtering: Clicking on author username will show public posts of this author. Or public + private posts of current logged user.

TODO:

  • Cover with tests (pytest)
  • Add comments to posts
  • Likes/Dislikes rating system
  • Search

Quick Start

  • Fork and Clone the repository using:
git clone https://github.com/habiboolean/Django-Simple-Blog.git
  • Create virtual environment:
python -m venv env
env\Scripts\activate
  • Install dependencies using:
pip install -r requirements.txt
  • Put your database connection settings:
settings.py line 95
  • Headover to Project Directory:
cd BlogPetProject
  • Make migrations using:
python manage.py makemigrations
  • Migrate Database:
python manage.py migrate
  • Create a superuser:
python manage.py createsuperuser
  • Run server using:
python manage.py runserver

Useful Resources to Learn

forthebadge made-with-python made-with-django (1)

django-simple-blog's People

Contributors

habiboolean 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.