1.1.2 • Published 3 years ago
scratch-userdb v1.1.2
This package already works, but there is no documentation yet for how to use it. I'll do it as soon as possible.
This is a node module that sets up a server with a database for Scratch projects, and also a REST API for getting that information. Useful for saving and loading games.
Example usage:
const userdb = require("scratch-userdb");
// Please use environment variables instead of using strings here.
userdb.start({
username: "myusername",
password: "mypassword",
project: "123456789",
});
I'll soon update this with how to use it in a Scratch project, and how to use the rest of the configuration object's properties. Just keeping this here for safety.