Skip to content

SarloAkrobata/django-app

Repository files navigation

Django app and django rest api

Screenshots

Page Page Page Page Page Page Page Page Page Page Page Page Page Page

Installation

  • Copy .env_example to .env and fill in required env vars.
  • Create file in app/logs/app.logs (This is just for testing purpose. In prod I suggest ELK stack for logging.)

Build

make build

Make migrations

docker compose exec blogapp uv run python manage.py migrate

Create superuser

docker compose exec blogapp uv run python manage.py createsuperuser

API Swagger testing and api documentation

http://127.0.0.1:8000/api/swagger/ To get user token, go to /auth/login and type username and password. Token copy and paste into Authorize as follow: Bearer <your_token>

All commands

Build

make build

Start containers

make up

Ssh to blogapp container

make ssh

Start Django server

make server

Turn of all containers in network

make down

Run linter

make flake8

Run tests

make test

Usage

  1. Open the browser and go to http://127.0.0.1:8000
  2. Register users (Additionally in admin grant editor privileges)
  3. Login with your credentials
  4. Navigate through the dashboard
  5. Subscribe to user by clicking on btn Subscribe on writer profile
  6. Watch Celery tasks: docker compose logs -f celery

Technologies Used

  • Django
  • Celery
  • Django Rest Framework
  • HTML, CSS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published