Description

I wanted to try and make a FullStack Dashboard using MUI, Recharts and Regression. My idea behind this project was to practice some basic concepts as well as push to see what more I could do. I did follow some tutorials on Youtube to improve the design and data.

Installation

Use the node package manager to install node modules both for the frontend and backend

Backend

You will also need the following -

  • Setup MongoDB Cluster
  • Create /server/.env file in the server folder and add the following
PORT=1337
MONGODB_URL=<Your MongoDB Cluster Address>
  • Deploy the dummy data to MongoDB cluster. The code to reset the cluster and upload the data is in /server/index.js

  • Then run the backend by -

cd client
npm install
npm run dev

Frontend

You will also need the following -

  • Create a /client/.env.localfile in the server folder and add the following
VITE_BASE_URL=http://localhost:1337
  • Then run the frontend by -
cd client
npm install
npm run dev

Tech Used

Frontend

Backend

  • Express
  • Node.js
  • Helmet
  • Mongoose
  • Morgan
  • MongoDB
  • Data-Model -

Datamodel

Deployment

Dashboard

Regression Line