Skip to content

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

Notifications You must be signed in to change notification settings

AlessandroMessori/Flask-Uni-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published