Coder Social home page Coder Social logo

parkerproject / analytics-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jrc356/analytics-dashboard

0.0 1.0 0.0 1.47 MB

A custom analytics dashboard built with nodejs and react

License: MIT License

HTML 11.10% CSS 2.43% JavaScript 86.48%

analytics-dashboard's Introduction

Build Status

Analytics Dashboard

This analytics dashboard is a custom built website analytics dashboard built on Nodejs and React. It utilizes the googleapis package to read metrics and display them in a simple and elegant way. It also implements real time analytics using Socket.io and a custom script. This project was written as a project for an upcoming article (stay tuned for link)

Installation & Usage

Install the packages necessary by first installing the server side packages. Then install the client side packages.

Create a .env file with the following variables:

SERVER_PORT=<port>
NODE_ENV=<development/production>
CLIENT_EMAIL=<google service account email>
PRIVATE_KEY=<google service account private key>
VIEW_ID=<google analytics view id>

From the top level directory install with yarn or npm:

$ yarn install
$ cd client
$ yarn install

or

$ npm install
$ cd client
$ npm install

Finally, run npm start from the top level directory.

This will start the node server and open the local webpack server for the front end.

NOTE: The start script is built for *nix systems and uses && so it will not work on Windows systems at this time. I do have an open issue for this and will return to it in the near future.

Deployment

Build the client by doing the following: From the top level directory:

$ cd client
$ yarn build

or, using npm:

$ cd client
$ npm build

Then change the NODE_ENV variable in .env to production Finally, use npm run server from the top level directory. This will start up the node server using the client build output as the static directory. You can now navigate to localhost:<SERVER_PORT> and see your app.

License

See LICENSE

analytics-dashboard's People

Contributors

dependabot[bot] avatar jrc356 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.