Coder Social home page Coder Social logo

lxmultimedia / django-rest-framework-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p8ul/django-rest-framework-boilerplate

0.0 1.0 0.0 41 KB

Simple boilerplate for Django 2.1 & Django rest framework

Python 99.43% Dockerfile 0.57%

django-rest-framework-boilerplate's Introduction

django-rest-framework-boilerplate

Simple boilerplate for django & django rest framework.

Build Status Coverage Status Maintainability

Tasks list

  • Users api CRUD endpoints
  • DRF JWT Authentication
  • Add docker configurations
  • Document folder structure
  • Configure Static/media & templates
  • Integrate material ui & react js on templates

Jwt token endpoint

Method Endpoint Functionanlity
POST /api-token-auth Request jwt token

User Endpoints

Method Endpoint Functionality
GET /api/user List users
POST /api/user/create Creates a user
GET /api/user/profile/{pk} Retrieve a user
PUT /api/user/update/{pk} Edit a user
DELETE /api/user/destroy/{pk} Delete a user

Installation

If you wish to run your own build, you two options

  1. User Docker compose.

    $ git clone https://github.com/p8ul/django-rest-framework-boilerplate

    $ cd django-rest-framework-boilerplate
    $ docker-compose up

  2. Without docker

First ensure you have python globally installed in your computer. If not, you can get python here.

After doing this, confirm that you have installed virtualenv globally as well. If not, run this:

$ pip install virtualenv

Then, Git clone this repo to your PC

$ git clone https://github.com/p8ul/django-rest-framework-boilerplate
$ cd django-rest-framework-boilerplate

Create a virtual environment

$ virtualenv .venv && source .venv/bin/activate

Install dependancies

$ pip install -r requirements.txt

Make migrations & migrate

$ python manage.py makemigrations && python manage.py migrate

Create Super user

$ python manage.py createsuperuser

Launching the app

$ python manage.py runserver

Run Tests

$ python manage.py test

django-rest-framework-boilerplate's People

Contributors

dependabot[bot] avatar p8ul 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.