Installation
Edit on GithubThis tutorial will outline the steps necessary to install Sprite in your project. It works in Node.js, Bun, or Deno.
Overview
Node.js
- Ensure ArcadeDB 24.5.x (or greater) is installed per the official documentation.
- Ensure Node.js 16.x or greater is installed per the official documentation.
- Ensure you have a Node.js project ready to work with.
- In a terminal, navigate to your project’s root directory and install Sprite with
npm
(or your preferred package manager):
$ cd path/to/your/project
$ npm install @tragedy-labs/sprite
Bun
- Ensure ArcadeDB 24.5.x (or greater) is installed per the official documentation.
- Ensure the latest version of Bun is installed per the official documentation.
- Ensure you have a Bun project ready to work with.
- In a terminal, navigate to your project’s root directory and install Sprite with
bun
:
$ cd path/to/your/project
bun install @tragedy-labs/sprite
Deno
- Ensure ArcadeDB 24.5.x (or greater) is installed per the official documentation.
- Ensure the latest version of Deno is installed per the official documentation.
- Ensure you have a Deno project ready to work with.
- Import the necessary Sprite modules into your project.
import { SpriteServer } from "npm:@tragedy-labs/sprite";
// and/or
// import { SpriteDatabase } from "npm:@tragedy-labs/sprite;
What’s Next?
The next tutorial explains using the SpriteServer
module to create a database.