A fullstack MERN app with finance dashboard for tracking various financial metrics of a company with a simple machine learning prediction
- Dashboard: displaying multiple charts that represent financial performance metrics, namely key performance indicators (KPIs), products, and transactions.
- Prediction: displaying forecast revenue for the upcoming year. It leverages historical data and applies linear regression algorithms to predict future trends.
Live demo of the app available here: https://finance-app-hj.vercel.app/
- Frontend: Vite, React, Redux, Redux Toolkit, TypeScript, Material-UI, Recharts
- Backend: Node.js, Express.js, MongoDB
- Deployment: Vercel
- Clone the respository:
git clone https://github.com/cocomarine/finance-app-ts.git
- Navigate to the project directory and install dependancies:
npm install
- Set up the environment variables:
- Create an .env.local file in the root of the client folder in the same format as the .evn.local.sample file.
- Create an .env file in the root of the server folder in the same format as the .evn.sample file.
- Start the app by running the following command in the client and server folders, respectively:
npm run dev
- Open the app in the browser at http://localhost:5173/.
The client and server were separately deployed in the following steps.
- Create a vercel.json file in the root of the server folder.
- Connect the project repository to your Vercel account (https://vercel.com/).
- Configure the deployment settings. Also make sure to add the environment variables stored in .env.local and .env files.
- Deploy the app to Vercel.
- You may need to repeat these steps to update the environmental variables with a new URL.