Inspiration

The inspiration behind creating this project was to learn doing backend with Python.

What it does

The projects has capabilities of user registration and login with jwt token, with three roles: user, admin, user_manager, there are some specific permission for each route.

  • Now when you create your account, there is an option to calories. You can put the numbers of calories that you want to intake in day.
  • Now when you take a meal, you need to input the name of your meal and its description. Once you have entered, it tell you either you should take that meal or not take that meal, so that you can only take limited calories for the day.
  • You can perform CRUD operation of your meal.

How we built it

  1. First we need to install all the require libraries so to install run the following command.

    pip install -r requirements.txt
    
  2. Then to start the backend run the following command

    uvicorn app.main:app --reload
    
  3. On below route, the project is live:

    http://localhost:8000/docs
    

Challenges we ran into

The project is simple, the only trouble one may have is that kindly make sure that port 8000 is not occupied on your localhost.

Accomplishments that we're proud of

What we learned

Learnt the usage of FASTAPI and backend in Python.

What's next for CalFetch

The project can be enhanced by adding more routes and actions and increase test coverage of the project.

Built With

Share this project:

Updates