The Beabee Client is a versatile library designed to facilitate easy interaction with the Beabee API. Initially developed in Deno, the library is being crafted with a vision to support multiple platforms including Deno, Node.js, and browser environments.
Currently, the primary focus is on developing the client in Deno. Future updates will include porting the library to Node.js and browser environments, enhancing its versatility and accessibility.
To begin working with the Beabee Client in Deno:
- Ensure Deno is installed on your system.
- Clone the repository and navigate to the
beabee-client
directory. - Follow the setup instructions detailed in this README.
As we also bundle the project for Node.js, Node.js is also required in addition to Deno. So we also install the packages for Node.js:
# Install Node.js packages
npm install
To build the client, run the following task in the beabee-client
directory:
# Build the client for all platforms
deno task build
# Build the client for Node.js
deno task build:node
# Build the client for the browser
deno task build:web
You do not need to bundle the project for Deno.
Just run one of the following tasks in the beabee-client
directory:
# Run all tests
deno task test
# Run Node.js tests
deno task test:node
# Run Deno tests
deno task test:deno
# Run browser tests
deno task test:web
To lint the project, run deno lint
in the project root directory.
To format the project, run deno fmt
in the project root directory.
Contributions to the client, in terms of code, bug reports, or feature suggestions, are always welcome. Please refer to the project's contribution guidelines for more information.
Stay tuned for updates on the expansion of the client to other platforms. Your feedback and suggestions are valuable in guiding the development process.
This project is licensed under the Apache License 2.0. This license is a permissive open-source license, allowing the use, modification, and distribution of the software for any purpose, without concern about copyright infringement. It also provides an express grant of patent rights from contributors to users.
For more details, see https://www.apache.org/licenses/LICENSE-2.0.html.