pmaingi / chartbrew

Open-source web app for creating charts out of different data sources (databases and APIs)

Home Page:https://chartbrew.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChartBrew logo

ChartBrew build

ChartBrew is an open-source web application used to generate charts from different data sources. The focus of this project is to make the process less tedious and put as much accent as possible on Usability.

This project was created by Kate Belakova and Razvan Ilin

πŸ“š Read the full docs here

πŸ”§ Development roadmap - start here if you want to contribute

πŸš™ Public feature roadmap over here

πŸ’¬ Join our Slack workspace

🀟 Join our Discord

Data sources

Currently, ChartBrew supports connections to these data sources.

  • MySQL
  • PostgreSQL
  • MongoDB
  • APIs that support JSON data

Prerequisites

  • NodeJS v10.16.0+
  • NPM
  • MySQL v5+ Server running

Start

It is recommended you head over to the more detailed documentation to find out how to set up Chartbrew

πŸ“š You can find it here

Quickstart

If you already have a MySQL server running, create a database called charbrew and adjust the parameters below with your connection settings. The command will then setup everything for you.

npx create-chartbrew-app myApp --dbname="chartbrew" --dbusername="root" --dbpassword="" --dbhost="localhost"

The arguments are optional, but they set the environmental variables needed for the project to run. Check out which need to be set here.

Run the database migrations

If the database parameters are correct, the migrations should run automatically. If the new database wasn't populated with tables, ensure all the environmental variables are set, then run the following command in the server folder:

npm run db:migrate

Run the project in Development

Open two terminals, one for front-end and the other for back-end.

# frontend
cd client/
npm run start

# backend
cd server/
npm run start-dev

Docker container

Open up .env-template in the root folder of the project and make sure that the database host var is set to db like so:

CB_DB_HOST_DEV=localhost -> CB_DB_HOST_DEV=db

CB_DB_HOST=localhost -> CB_DB_HOST=db

Then run the following commands:

npm run setup:docker
docker-compose up

For more information on how to configure, modify and deploy ChartBrew, read the full docs here

About

Open-source web app for creating charts out of different data sources (databases and APIs)

https://chartbrew.com

License:MIT License


Languages

Language:JavaScript 99.1%Language:HTML 0.5%Language:CSS 0.3%Language:Dockerfile 0.0%Language:Shell 0.0%