sayantikabanik / backend-with-fastapi

A virtual candy store example with FastAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Backend With FastAPI - Virtual Candy Store

Repo Setup

  1. Fork the Repo, so that you can write your code in your own repo.
  2. Clone the Repo to your local machine.
  3. You need two terminals open, one for running the backend and the other for running the frontend.
  4. cd frontend and run npm install to install the dependencies.
  5. cd backend and run pip install -r requirements.txt to install the dependencies.
  6. Run frontend using npm start and backend using fastapi dev main.py in the respective terminals.
  7. You can now start writing your code.

Tasks For the day

Warmup

  • Understand HTTP and REST APIs
  • Create a GET API hello world API
  • Create a GET API that takes your name as input and returns hello <name>

Candy Store

  • Open a text editor and list down all the features you would have in a virtual candy store
  • Designing the data model
  • Designing the APIs
  • Creating data structures
  • Creating the APIs

Resources

Theory

Final Code

https://github.com/thelearningdev/backend-with-fastapi/tree/candy-store-final

About

A virtual candy store example with FastAPI


Languages

Language:JavaScript 66.2%Language:HTML 19.1%Language:CSS 11.3%Language:Python 3.4%