# chartbrew
**Repository Path**: qwsone/chartbrew
## Basic Information
- **Project Name**: chartbrew
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2023-12-01
- **Last Updated**: 2023-12-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create beautiful charts. It features a chart builder, editable dashboards, embedable charts, query & requests editor, and team capabilities.
Chartbrew as a service is available here
📚 [**Read the full docs here**](https://docs.chartbrew.com)
💡 [**Have any ideas or discussion topics?**](https://github.com/chartbrew/chartbrew/discussions)
💬 [**Join our Discord**](https://discord.gg/KwGEbFk)
## Data sources
[Check Chartbrew's website for the latest list of supported data sources](https://chartbrew.com)
## Prerequisites
* NodeJS v14, v16, v18
* MySQL (5+) or PostgreSQL (12.5+)
## 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](https://docs.chartbrew.com/#getting-started)
## Set up Chartbrew locally
### Create a new database
Chartbrew can run on MySQL or PostgreSQL. Create an empty database that Chartbrew can use.
### Clone and setup
```sh
git clone https://github.com/chartbrew/chartbrew.git
cd chartbrew && npm run setup
```
Complete the required environmental variables in `chartbrew/.env`. [Check out which need to be set here.](https://docs.chartbrew.com/#set-up-environmental-variables)
### Run the project in Development
Open two terminals, one for front-end and the other for back-end.
```sh
# frontend
cd client/
npm run start
# backend
cd server/
npm run start-dev
```
Head over to `http://localhost:4018` to see the app running and create your first user account.
## Deploy Chartbrew on Render
[](https://chartbrew.com/blog/how-to-deploy-chartbrew-on-render/)
## Deploy Chartbrew on Heroku and Vercel
[Read more on how to do this here](https://chartbrew.com/blog/how-to-deploy-chartbrew-on-heroku-and-vercel/)
## Run with Docker
[Check the full guide in the docs.](https://docs.chartbrew.com/deployment/#run-the-application-with-docker)
### Quickstart
A [Chartbrew docker image](https://hub.docker.com/r/razvanilin/chartbrew) is built whenever a new version is released.
Before running the commands below, make sure you have a MySQL server already running and an empty database that Chartbrew can use. The database name should match the value of the `CB_DB_NAME` variable.
```sh
docker pull razvanilin/chartbrew
docker run -p 4019:4019 -p 4018:4018 \
-e CB_SECRET=enter_a_secure_string \
-e CB_API_HOST=0.0.0.0 \
-e CB_API_PORT=4019 \
-e CB_DB_HOST=host.docker.internal \
-e CB_DB_PORT=3306 \
-e CB_DB_NAME=chartbrew \
-e CB_DB_USERNAME=root \
-e CB_DB_PASSWORD=password \
-e REACT_APP_CLIENT_HOST=http://localhost:4018 \
-e REACT_APP_API_HOST=http://localhost:4019 \
razvanilin/chartbrew
```
## Acknowledgements
Many thanks to [everybody that contributed](https://github.com/chartbrew/chartbrew/graphs/contributors) to this open-source project 🙏
[Start here if you want to become a contributor](https://github.com/chartbrew/chartbrew/blob/master/CONTRIBUTING.md)