Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

larsschwegmann/coroperate-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coroperate-backend

This is the back-end code for coroperate, an app that we developed for the #WirVsVirus Hackathon of the German government. Check out a description of our project on Devpost or watch the pitch video on YouTube.

This repo contains the back-end of the app, a REST API built with django and django REST framework. The iOS front-end can be found here.

Set up

You need Python 3.6 or newer. Clone and enter the repo:

git clone git@github.com:larsschwegmann/coroperate-backend.git
cd coroperate-backend

Create and activate virtual environment:

python3 -m venv .venv
source .venv/bin/activate

Install requirements via pip:

pip install -r requirements.txt

Running locally

Make sure you're in the outer coroperate directory. Then, run

python manage.py runserver

API

The following endpoints are provided:

/requests/
  • GET: Return a list of existing requests.
  • POST: Create a new request as well as the items demanded in that request.
/requests/<id>
  • PUT: Accept the request with <id>
/users/
  • POST: Create a new user
/token/
  • POST: Obtain JSON web token pair.
/token/refresh/
  • POST: Return access token if refresh token is valid.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages