Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ritikesh/sample-d3
Sample d3.js exercise to plot bar graphs from postgresql
https://github.com/ritikesh/sample-d3
Last synced: 15 days ago
JSON representation
Sample d3.js exercise to plot bar graphs from postgresql
- Host: GitHub
- URL: https://github.com/ritikesh/sample-d3
- Owner: ritikesh
- License: mit
- Created: 2018-04-29T12:05:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T09:40:55.000Z (over 6 years ago)
- Last Synced: 2024-10-21T20:36:47.853Z (27 days ago)
- Language: HTML
- Size: 137 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Daily inventory
Sample webpage showing graphs plotted on d3.js loaded through vue.js. Backend is served using express.js as the web framework built on top of node.js and postgresql database.## Steps to run the server:
1. start your local postgresql server and set ENV variables or create settings in your local postgresql as defined in `config/db.js`.
2. create a database and set the database name accordindly.
3. run `npm install` from the root directory
4. run `npm run seed` to create the table and populate data from the csv file
5. run `npm run dev` to start the server
6. load the site on `localhost:8000` to see the output**Note:**
1. Local versions used for dev: node.js(8.9.4), npm(5.8.0), postgresql(9.5)## Screenshots:
### Day view:
![Date view](screenshots/01.png)### Week view:
![Week view](screenshots/02.png)This project is Licensed under the MIT License. Further details can be found [here](/LICENSE).