The Post Office Admin Dashboard provides us with three main page sections :
- Client-facing pages with Products, Customers, and Transaction details.
- Sales pages with line charts about an Overview, daily and monthly sales, and a Breakdown shown as a pie chart.
- Management page with administrators' details.
Frontend :
- React 18.2.0
- MaterialUI & MUI Datagrid
- Nivo Charts
- Redux Toolkit Query
Backend :
- NodeJS
- ExpressJS
- Mongoose / MongoDB
Follow these steps to install and run the project:
-
Clone the repository
Open your terminal and run the following command to clone the repository:
git clone https://github.com/cyvolx/post-office_dashboard.git
-
Navigate to the project directory
cd post-office_dashboard -
Navigate to the client & server directories in seperate terminals
cd client cd server
-
Install their required packages in each one
npm i
-
Set up the environment variables
The project requires the MONGODB_URI & PORT environment variable to be defined. You can do this in a
.envfile in the root of your project:MONGO_URL=your_mongodb_uri PORT=your_server_port
-
Start the server
Run the following command to start the server:
npm run dev
-
Start the client
Run the following command to start the server:
npm start
Now, you should be able to access the project at http://localhost:3000.
Please note that the project requires the "m.media-amazon.com" domain to be accessible for image handling. If you are unable to access this domain, you may encounter issues with image loading.