This is a web app to share SQLs for data analysis from Bdash.
The features are:
- Share as a web page your SQL, query results and charts from Bdash client.
- Add descriptions to your query.
- Search queries of all users.
Bdash Server is powered by Blitz.js using Next.js and Prisma.
Make your own .env.local
from .env.local.example
for development.
$ cp .env.local.example .env.local
And write your own GOOGLE_CLIENT_ID
and GOOGLE_CLIENT_SECRET
for OAuth.
You can generate OAuth web client ID by following the steps described in: https://support.google.com/workspacemigrate/answer/9222992.
After that,
- Set
http://localhost:3000
as Authorized JavaScript origins - Set
http://localhost:3000/api/auth/google/callback
as Authorized redirect URIs
$ yarn dev
Docker is required. 🐳
Run db:migrate to setup database.
$ yarn db:migrate
Open http://localhost:3000 with your browser to see the result.
Run an app container with the image built by Dockerfile for production.
docker compose -f docker-compose-with-app-container.yml up --build
yarn test
MIT