AlessandroMessori / Flask-Uni-API

REST API built with Flask which allows authentication and basic CRUD operation on a Mongo database containing mock university data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask-Uni-API

Introduction

This is a side project that I made during my universty years in order to get familiar with a set of skills and technologies I was feeling was missing from my toolbox at the time. It consists of an REST API that exposes fictional university data, alongside the code to generate and plot such data.

Quickstart

To start the app listening on port 5000

docker-compose up  

Technologies Used

  • Python
  • Flask
  • Docker
  • MongoDB

Endpoints

  • /register
    • POST
  • /login
    • POST
  • /teachers
    • GET
  • /teachers/:id
    • GET, POST, PUT, DELETE
  • /students
    • GET
  • /students/:id
    • GET, POST, PUT, DELETE
  • /courses
    • GET
  • /courses/:id
    • GET, POST, PUT, DELETE

Scripts

  • app.py --> starts up the backend server to serve the requests
  • generate.py --> Generates realistic collections of students and teachers and loads them in the Mongo datastore
  • analyze.py --> Plots the distribution of the student's GPA and of the distribution of teachers by department

About

REST API built with Flask which allows authentication and basic CRUD operation on a Mongo database containing mock university data


Languages

Language:Python 93.7%Language:Dockerfile 6.0%Language:Shell 0.3%