Attention: The code in this repository is intended for experimental use only and is not fully tested, documented, or supported by SingleStore. Visit the SingleStore Forums to ask questions about this repository.
Whether you're using an ORM or straight SQL, you can get started with SingleStore (formerly MemSQL) fast. Here's an introductory sample of using SingleStore stored procedures with Node and JavaScript. This sample includes all the CRUD methods: Create, Read by id, Read all, Update, and Delete.
-
Sign up for a free SingleStore license. This allows you to run up to 4 nodes up to 32 gigs each for free.
-
Spin up a SingleStore cluster. Choose the deployment strategy that makes sense to you:
a. Cloud: Start a Managed Service trial and run
init.sql
.b. VMs: Install SingleStore on a supported Linux distribution then run
init.sql
.c. Containers: Grab your license key from SingleStore portal and set it into
docker-compose.yaml
. Then rundocker-compose up
to start the cluster and automatically runinit.sql
. -
Adjust the connection details in
index.js
,npm install
, andnpm start
.
MIT