Skip to content

Full stack website utilizing the napchart library to create, save and share napcharts.

License

Notifications You must be signed in to change notification settings

jackred/napchart-website

 
 

Repository files navigation

Napchart Website

Full stack website utilizing the napchart library to create, save and share napcharts.

Written using a node.js back-end and react for the front-end

Installation

⚠️ Napchart-website uses node-canvas as a dependency to render charts server-side. It needs some specific programs in order to work. Go to Automattic/node-canvas to see instructions for you OS

Then try to install dependencies using npm

npm install

Then launch the app

npm run dev

By default, the app will be available at localhost:3000

API

From server.js:

app.post('/api/create', api.create)
app.get('/api/get', api.get)
app.get('/api/getImage', api.getImage)

Create chart: /api/create with data as post

Get chart: /api/get?chartid=xxxxx receive data

Get image: /api/getImage?chartid=xxxxx&width=600&height=600&shape=circle receive image (shape is optional)

Contributing

See CONTRIBUTING.md for an introduction to the code-base

About

Full stack website utilizing the napchart library to create, save and share napcharts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 80.5%
  • JavaScript 18.8%
  • HTML 0.7%