A NoSQL REST database using Redis written in NodeJS.
Documentation is currently in the works!
Will be seperating docs into a seperate file soon!
Documentation:
The server is made up of reusable functions called components.
Documentation for each component:
- createAccount
This component is used to create an entry in the database.
const createAccount = component("/async_dbOperations", "createAccount");
// working on a better component function
// probably better to use an async IFFE
const performQuery = async data => {
const query = await createEntry(data).catch(e => {
return new Error(e);
});
// query => { success: true, message: "createdAccount" };
};
- findUser
This component can be used to check if an account exists and to fetch the info from the database about the user
const deleteUser = component("/async_dbOperations", "findUser");
const performQuery = async username => {
const query = await deleteUser(username).catch(e => {
return new Error(e);
});
// query => user data*
};