New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@questdb/web-console

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@questdb/web-console

QuestDB Console

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
416
decreased by-10.15%
Maintainers
4
Weekly downloads
 
Created
Source

QuestDB Web Console

This package contains code of the GUI for interacting with QuestDB.

It is a web application built with TypeScript and React and managed with Yarn@3 and Webpack.

Local development setup

You need to do the following steps:

  1. Clone the repository
  2. Bootstrap dependencies
  3. Start development server
  4. Run QuestDB in the background
  5. Hack!

The setup is fairly quick!

1. Clone the repository

The repository is about 250MB in size. This is expected, because we use Yarn@3 with PnP.
Download is what takes the most amount of time (~1 minute on a decent connection).

  • clone using SSH:

    git clone git@github.com/questdb/ui.git
    
  • or using HTTPS:

    git clone git@github.com/questdb/ui.git
    
  • or using Github CLI:

    gh repo clone questdb/ui
    

2. Bootstrap dependencies

  • node -v should return 16.13.1
    If it doesn't, you can use fnm or nvm to manage node versions on your machine.
    Then run fnm use or nvm use to set correct version.

  • yarn -v should return v3 (like 3.2.1).
    If it returns command not found, enable yarn by running corepack enable.
    Follow official installation guide if you have trouble.

  • run yarn to bootstrap dependencies. This should be a quick process (less than a minute).

3. Start development server

yarn workspace @questdb/web-console start

localhost:9999 should show web console

4. Run QuestDB in the background

This package is a only GUI for QuestDB, it does not include QuestDB itself.
GUI will work without it, but since it's a tool to interact with QuestDB, you will need QuestDB as well.

Check readme.md of QuestDB to learn how to install it.

If you have docker, then it's simply:

docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 questdb/questdb

5. Hack!

Do your code changes and browser will automatically refresh localhost:9999.

Happy hacking!

Run build

  1. Make sure dependencies are set up:
yarn
  1. Run build script:
yarn workspace @questdb/web-console run build
  1. Build process emits static HTML, CSS and JS files in packages/web-console/dist

Run tests

This monorepo contains browser-tests package which is used to test web-console package. browser-tests does not yet run as part of web-console build on CI, but they can be used to test changes locally.

Tests are written with Cypress E2E framework.

  1. start web-console local dev environment as explained above in this document.
  2. run tests with
yarn workspace browser-tests test

or

yarn workspace browser-tests run cypress open

FAQs

Package last updated on 19 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc