Giter Site home page Giter Site logo

django-blog's Introduction

Django Blog

Class based view django blog website. Based on https://github.com/AliBigdeli/mysite project.

How To Use

  1. Install docker and docker compose.
  2. Clone the repository.
  3. Run the docker compose: docker-compose -f docker-compose-production.yml up -d --build
  4. Create database: docker exec backend python manage.py migrate
  5. Open your browser and go to http://localhost/.

API

Blog endpoints: http://localhost/blog/api/v1/

API Docs:

Celery Beat

The celery beat creates a new post automatically every 10 minutes.

Create dummy data

For creating five dummy posts: run docker-compose exec backend sh -c "python manage.py insert_data"

Run tests

For running pytest: run docker-compose exec backend sh -c "pytest ."

django-blog's People

Contributors

mra-ak avatar

Watchers

 avatar

django-blog's Issues

Add API

DRF API:

  • Endpoints
  • Authentication
  • Documents

Create README file

  • Simple description
  • How to run
  • Different parts (Celery, API, Cache, ...)

Blog views

Create CBVs for blog APP

  • List view
  • Detail view
  • Edit View
  • Delete View
  • Filter by a category

CI/CD

Create simple CI/CD

Reformat

Reformat the codes with flake8

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.