Skip to content

geekysrm/dashboard-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard with Charts

A dashboard showing data in bar graph and pie chart.

Technologies used

  • React.JS -Frontend library used in the project.
  • Victory - Charting library used.
  • Node.JS - Node.JS is used in the backend to serve the MySQL DB.

Features

  • This is a simple ReactJS application which shows a simple dashboard after successful login.
  • This dashboard has 2 graphs (bar graph and pie chart).
  • The charts are connected with a MySQL server which has [13, 45, 23, 41, 34, 54] for the bar graph and [25, 35, 40] for the pie chart as the data.
  • For login, login-id would be admin and password would be current date in this format 24march2019.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Node.JS and npm must be installed. Download and install them from here.

Installing

Follow these steps to run this project in your local computer.

$ https://github.com/geekysrm/dashboard-react.git
$ cd dashboard-react

Create a MySQL server with 2 tables bar and pie each having a column data. bar has data values: [13, 45, 23, 41, 34, 54] pie has data values: [25, 35, 40]

Now, create a .env file in the root of the project with the following variables:

MYSQL_HOST=<YOUR_MYSQL_HOST>
MYSQL_USER=<YOUR_MYSQL_USER>
MYSQL_PASSWORD=<YOUR_MYSQL_PASSWORD>
MYSQL_DB=<YOUR_MYSQL_DB>
JWT_SECRET=<YOUR_JWT_SECRET>

Now run :

$ npm i
$ npm run client-install

Now, to run both the server and client on port 5000 and 3000 respectively, run:

$ npm run dev

To run only the server, run:

$ npm run server

To run only the client, run:

$ npm run client

Authors

License

This project is licensed under the MIT License.

About

A dashboard showing data in bar graph and pie chart.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published