Code Monkey home page Code Monkey logo

expense-tracker's Introduction

Expense tracker

Getting Started

This instruction will get you a copy of this project up and running on your local machine

Docker setup ๐Ÿณ

Run the following docker compose command:

docker compose up

It'll setup necessary environment and run the following servers: An backend will be run at http://localhost:3000 An backend swagger docs will be run at http://localhost:3000/v1/docs And frontend will be run at http://localhost:5173

Manual setup

Prerequisites

You need Node JS (v18.x.x) installed on your local machine.

Installing โš™๏ธ

Run the followning command to install all the packages:

yarn setup

Setup Environment Variable

Set the following environment variable to backend directory. Also, an example file is given with the name of .env.example:

PORT=3000
HOST=http://localhost:3000

DATABASE_URL="postgresql://username:password@localhost:5432/expense_tracker"

JWT_SECRET=thisisasamplesecret
JWT_ACCESS_EXPIRATION_MINUTES=30
JWT_REFRESH_EXPIRATION_DAYS=30
JWT_RESET_PASSWORD_EXPIRATION_MINUTES=10
JWT_VERIFY_EMAIL_EXPIRATION_MINUTES=10

Database Migration ๐Ÿ’ฟ

Run the followning command to migrate the prisma schema:

yarn db:migrate

This command also perform seed ๐ŸŒฑ to your database with some preset dataset.

Run ๐Ÿƒ๐Ÿปโ€โ™‚๏ธ

By this command your frontend and backend server will be run concurrently

yarn start

An backend will be run at http://localhost:3000 An backend swagger docs will be run at http://localhost:3000/v1/docs And frontend will be run at http://localhost:5173

Test user credential

Use this credential to log into the test user account

email: [email protected]
password: password123

Built With ๐Ÿ—๏ธ๐Ÿ‘ท๐Ÿป

  • NodeJs - Node.jsยฎ is an open-source, cross-platform JavaScript runtime environment.
  • ExpressJs - Fast, unopinionated, minimalist web framework for Node.js.
  • Prisma - Next-generation Node.js and TypeScript ORM
  • React - The library for web and native user interfaces
  • Tailwind CSS - A utility-first CSS framework packed with classes
  • Shadcn/ui - Tailwind and RadixUi based component library

Authors

  • Md Maruf Ahmed - Software Engineer

expense-tracker's People

Contributors

maruffahmed avatar

Stargazers

Min Htet Oo avatar  avatar Wallace Bezerra avatar

Watchers

 avatar Wallace Bezerra 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.