Money tracking app is built using the MERN stack, which includes a MongoDB database, an Express server, a React client-side interface, and Node.js as the runtime environment.
The app allows you to track your expenses and income, and to view your transaction history in a user-friendly interface.
- Search for a cryptocurrency and view its details
- View the latest price of a cryptocurrency and its price trend using a chart
- View the top cryptocurrencies sorted by market cap
- View the news related to cryptocurrencies
- src/main.js: The main entry point of the application.
- src/App.jsx: The main component of the application.
- backend/models: Contains all schema for database
- backend/index.js: Server file for Express
Once the app is running, you can start tracking your money:
- To add a new transaction fill out the form with the transaction details and click "Add" button to save it to the database.
- You can view your transaction history below the form. This will display a list of all your transactions, with the most recent ones at the top.
- To view your balance, check the "Balance" section in the header. This displays the total of all your income transactions minus the total of all your expense transactions.
The money tracking app has the following API endpoints:
- GET /api/transactions: returns all transactions in the database.
- POST /api/transactions: adds a new transaction to the database.
Explore for more about the MERN Stack. With this app, you can easily keep track of your expenses and income, and make informed decisions about your finances.
Clone the project
git clone https://github.com/Kamilismayilzade/money-tracking-mern-stack
Go to the project directory
cd money-tracking-mern-stack
Install dependencies
npm i
npm i nodemon
npm i express
npm i mongoose
npm i dotenv
npm i cors
Install devDependencies
npm create vite@latest
Start the server
npm run dev
-
Set up your MongoDB database and make sure it is running.
-
In the project root directory, create a .env file and set the following environment variables:
MONGODB_URI=<your_mongodb_uri>
PORT=<your_server_port>
Client: React
Server: Express
React, Express, Node, MongoDB, MERN STACK