francocorreasosa / drfx

A framework for launching new Django Rest Framework projects quickly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DRFx

A framework for launching new Django Rest Framework projects quickly. Comes with a custom user model, login/logout/signup, social authentication via django-allauth, and more.

Features

  • Django 3.1, Django REST Framework 3.13, and Python 3.10
  • Custom user model
  • Token-based auth
  • Signup/login/logout
  • django-allauth for social auth
  • Poetry for virtualenvs

First-time setup

  1. Make sure Python 3.7x and Poetry are already installed.
  2. Clone the repo and configure the virtual environment:
$ git clone https://github.com/francocorreasosa/drfx.git
$ cd drfx
$ poetry install
  1. Set up the initial migration for our custom user models in users and build the database.
(drfx) $ poetry run ./manage.py makemigrations users
(drfx) $ poetry run ./manage.py migrate
(drfx) $ poetry run ./manage.py createsuperuser
(drfx) $ poetry run ./manage.py runserver
  1. Endpoints

Login with your superuser account. Then navigate to all users. Logout. Sign up for a new account and repeat the login, users, logout flow.

About

A framework for launching new Django Rest Framework projects quickly.

License:Other


Languages

Language:Python 98.3%Language:Shell 1.7%