Skip to content

saurabh-maurya/expense-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Plus

About The Project

The application is used to track and store expenses. This application build using MERN stack

Built With MERN



Getting Started

Prerequisites

  1. MongoDB
  2. Node JS
  3. NPM
  4. React JS

Database

  1. Collections -
    • transaction - use to store transaction related information
  2. Fields -
    • transaction - _id, text, amount, createdAt

Server - steps to start server side

  1. run command ** npm install** to install required modules
  2. add config.env file in \server\config dir and provide MONGO_URI for db connection.
MONGO_URI=mongodb://<HOST_NAME>:<PORT>/<DATABASE_NAME>
  1. to start server use command npm start

I have also attached POSTMAN collection for rest endpoint reference

Client - steps to start client side

  1. set your proxy in client/package.json based on where backend is hosted
  2. run command ** npm install** to install required modules
  3. to start server use command npm start

Frontend Screenshots

EXPENSE_TRACKER




Production - Steps

  • see production branch
    or
  • follow steps -
    1. In client folder, run command npm run build
    2. It will create a build dir, that will caontain all static files
    3. copy build dir from client dir and paste it in server dir
    4. set NODE_ENV as production in \server\config
    5. run command npm start to start server in production mode

Have a Good Day!

About

simple expense tracker using mern stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published