bitabase - Gateway
This is a very early attempt at the gateway server.
Getting Started
From the CLI
Running the following:
npm install --global bitabase-gatewaybitabase-gateway --help
Will output the below:
📦 Bitabase-Gateway - v1.5.1The scalable, sharded database engine.https://docs.bitabase.com The following commands and arguments are available when starting Bitabase Commands: start Start the bitabase gateway stack --bind-host Hostname to bind server to --bind-port Port to bind server to --rqlite-addr Path to contact rqlite --secret The internal request secret --account-mapper The regex to take the account from the incoming host No command specified
You can start a bitabase gateway server by running:
bitabase-gateway start
From NodeJS
const bitabaseServer = ; const server = ; serverstart;
Endpoints
All requests are proxied through to the database servers based on the database stored in the hostname:
https://:databaseName.bitabase.com
Method | Path | Description | |
---|---|---|---|
Records Records are stored in a collection and must adhere to the schema |
|||
1.1 | GET | /:collectionId | Search through records |
License
This project is licensed under the terms of the AGPL-3.0 license.