Giter Site home page Giter Site logo

2024-1a-t2-m10-a1's Introduction

2024-1A-T2-M10-A1

A simple project to manager orders with users, the solution is a REST API using python, fastapi and prisma

Features

  • Create, read and delete users
  • Create, read, update and delete orders
  • Prisma ORM to manage the database
  • FastAPI to create the REST API
  • Docker to manage the database and the api
  • Swagger documentation
  • Insomnia file to test the api
  • Folder structure to manage the project in a clean way

Folders:

  • assets: Contains the insomina file
  • prisma: Contains the prisma schema and the migrations
  • src/repositories: Contains the repositories to manage the database
  • src/routes: Contains the routes to the api
  • src/main.py: Contains the main file to start the api

Requirements

There are some requirements to run the project:

How to run

  1. Clone the repository

    git clone [email protected]:ViniciosLugli/2024-1A-T2-M10-A1.git
  2. Enter the project folder

    cd 2024-1A-T2-M10-A1
  3. Run the project docker compose to start the database and the api

    docker compose -f docker-compose.yml up --build
  4. Now you can access the api at http://localhost:3000 and they documentation at http://localhost:3000/docs

You can use the insomnia to test the api, just import the file insomnia.json to your insomnia and you will have all the requests to test the api.

image

Demos

Example API page output

image

Example usage using insomnia

demo.webm

2024-1a-t2-m10-a1's People

Contributors

vinicioslugli avatar

Watchers

 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.