Coder Social home page Coder Social logo

bdash-server's Introduction

Bdash Server

This is a web app to share SQLs for data analysis from Bdash.

The features are:

  1. Share as a web page your SQL, query results and charts from Bdash client.
  2. Add descriptions to your query.
  3. Search queries of all users.

screenshot

Bdash Server is powered by Blitz.js using Next.js and Prisma.

Setup

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

Run

$ 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 production mode (NODE_ENV=production) on local machine

Run an app container with the image built by Dockerfile for production.

docker compose -f docker-compose-with-app-container.yml up --build

Tests

yarn test

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.