/locally_repo

Crowdfunding App - DRF

Primary LanguagePython

#Locally

locally-logo

A crowdfunding app created with Django Rest Framework (and React). Filtering by location, users can view and donate to projects that matter to them and their community directly.

Disclaimer: only Brisbane suburbs are currently supported.

Deployed on Heroku.


Stack

Backend
  • Python
    • Django
    • Django Rest Framework (DRF)
Frontend
  • Javascript
    • React
Tools
  • VSCode
  • Insomnia

GET methods

GET all users

image

GET user by ID

image

GET all projects

image

GET project by ID

image

GET all donations

image

GET donation by ID

image

POST methods

POST users

image

POST projects

image

POST donations

image

PUT methods

PUT users

image

PUT projects

image

DELETE methods

DELETE users

image

DELETE projects

image

TOKEN creation

image

Step by step

How to register a new user

  1. Navigate to the POST /users/ request
  2. In the 'body' tab, select JSON
  3. In the 'body' field, enter new user credentials:
    {
        "username": "username",
        "email": "email",
        "password": "password"
    }
    
  4. Send the request and the new user is successfully created

image

How to create a new project

  1. Navigate to the POST /projects/ request
  2. In the 'body' tab, select JSON
  3. In the 'body' field, enter new project details:
    {
    "title": "New Project",
    "description": "Another test project",
    "goal" : 5000,
    "location": "BARDON",
    "image": "https://via.placeholder.com/300.jpg",
    "is_open": true,
    "date_created": "2020-03-20T14:28:23.382748Z"
    }
    
    
  4. Send the request and the new project is successfully created

image

API Specification table

image

Database schema

image