Expense Tracker API

Build an API for an expense tracker application.

Start building, submit solution and get feedback from the community.
2Submit Solution·
5 upvotes10 upvotes

Build an API for an expense tracker application. This API should allow users to create, read, update, and delete expenses. Users should be able to sign up and log in to the application. Each user should have their own set of expenses.

Expense Tracker API

Features

Here are the features that you should implement in your Expense Tracker API:

  • Sign up as a new user.
  • Generate and validate JWTs for handling authentication and user session.
  • List and filter your past expenses. You can add the following filters:
    • Past week
    • Past month
    • Last 3 months
    • Custom (to specify a start and end date of your choosing).
  • Add a new expense
  • Remove existing expenses
  • Update existing expenses

Constraints

You can use any programming language and framework of your choice. You can use a database of your choice to store the data. You can use any ORM or database library to interact with the database.

Here are some constraints that you should follow:

  • You’ll be using JWT (JSON Web Token) to protect the endpoints and to identify the requester.
  • For the different expense categories, you can use the following list (feel free to decide how to implement this as part of your data model):
    • Groceries
    • Leisure
    • Electronics
    • Utilities
    • Clothing
    • Health
    • Others

This is the last “beginner” project in the backend roadmap. If you have completed all the projects in the backend roadmap, you should have a good understanding of how to build a backend application. You can now move on to the “intermediate” projects in the backend roadmap.

Found a mistake? Help us improve.

Actively Maintained

We are always improving our content, adding new resources and adding features to enhance your learning experience.

Join the Community

roadmap.sh is the 7th most starred project on GitHub and is visited by hundreds of thousands of developers every month.

Rank 7th  out of 28M!

298K

GitHub Stars

Star us on GitHub
Help us reach #1

+90k every month

+1M

Registered Users

Register yourself
Commit to your growth

+1.5k every month

29K

Discord Members

Join on Discord
Join the community

Roadmaps Best Practices Guides Videos FAQs YouTube

roadmap.sh by @kamrify

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh · Terms · Privacy · Advertise ·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.