Giter Site home page Giter Site logo

pobch / mkcore Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 194 KB

REST api backend by Django REST Framework

Home Page: https://mkcore.herokuapp.com

Makefile 1.24% Python 96.47% HTML 0.41% Dockerfile 1.28% Shell 0.59%
django-rest-framework restful-webservices jwt-authentication

mkcore's Introduction

Makrub Application

STATUS:

Developing

Prerequisites

  • make
  • pipenv
  • postgresql
  • redis
    pipenv shell
    pipenv install

Setting up database in local environment

    createdb makrub
    createuser makrub
    psql makrub
    alter user makrub with encrypted password 'localpass';
    grant all privileges on database makrub to makrub ;

Running migration

    make migrate

Admin page

http://127.0.0.1:8000/admin/

Base url

http://127.0.0.1:8000/

API end points

  1. api/auth/login/ use e-mail and password to receive jwt token
  2. api/auth/login/refresh/ refresh jwt token when it is nearly expired
  3. api/auth/login/verify/ send jwt token to verify
  4. api/auth/register/
  5. api/users/ all users list
  6. api/users/<int:pk>/ an user detail
  7. api/users/profiles/ addition users' detail
  8. api/users/profiles/<int:pk>/
  9. api/rooms/ all rooms list
  10. api/rooms/<int:pk>/ each room detail
  11. api/rooms/join/ a guest user's action to join the room by room_code and room_password
  12. api/rooms/unjoin/ a guest user's action to leave the room
  13. api/answers/ all answers list
  14. api/answers/<int:pk>/

Docker

Development

make dev

Finding host IP in docker network

docker run -it python:3.6-alpine /bin/sh -c "/sbin/ip route|awk '/default/ { print \$3 }'"

mkcore's People

Contributors

pobch avatar mzxe avatar

Stargazers

Aleksandr Shcherbatov avatar

Watchers

James Cloos avatar  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.