- Fork the Repo, so that you can write your code in your own repo.
- Clone the Repo to your local machine.
- You need two terminals open, one for running the backend and the other for running the frontend.
cd frontend
and runnpm install
to install the dependencies.cd backend
and runpip install -r requirements.txt
to install the dependencies.- Run frontend using
npm start
and backend usingfastapi dev main.py
in the respective terminals. - You can now start writing your code.
- 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>
- 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
https://github.com/thelearningdev/backend-with-fastapi/tree/candy-store-final