Backend Development cheatsheet
Syntax snippets and quick notes for revision.
Backend Introduction
// Backend Core Script for Backend Introduction
console.log("Setting up secure backend service for Backend Introduction");Use this backend introduction pattern when a Backend Development task needs a small, readable starting point.
NodeJS Core Runtime
// Backend Core Script for NodeJS Core Runtime
console.log("Setting up secure backend service for NodeJS Core Runtime");Use this nodejs core runtime pattern when a Backend Development task needs a small, readable starting point.
ExpressJS Server Basics
// Backend Core Script for ExpressJS Server Basics
console.log("Setting up secure backend service for ExpressJS Server Basics");Use this expressjs server basics pattern when a Backend Development task needs a small, readable starting point.
RESTful API Routes
// Backend Core Script for RESTful API Routes
console.log("Setting up secure backend service for RESTful API Routes");Use this restful api routes pattern when a Backend Development task needs a small, readable starting point.
JSON Request Handling
// Backend Core Script for JSON Request Handling
console.log("Setting up secure backend service for JSON Request Handling");Use this json request handling pattern when a Backend Development task needs a small, readable starting point.
Database Connections Setup
import { connectDatabase } from "./db";
const db = await connectDatabase();
const results = await db.query("SELECT * FROM users;");
console.log(results);Use this database connections setup pattern when a Backend Development task needs a small, readable starting point.
SQL Database Basics
import { connectDatabase } from "./db";
const db = await connectDatabase();
const results = await db.query("SELECT * FROM users;");
console.log(results);Use this sql database basics pattern when a Backend Development task needs a small, readable starting point.
NoSQL MongoDB Basics
import { connectDatabase } from "./db";
const db = await connectDatabase();
const results = await db.query("SELECT * FROM users;");
console.log(results);Use this nosql mongodb basics pattern when a Backend Development task needs a small, readable starting point.
Mongoose ORM Integration
// Backend Core Script for Mongoose ORM Integration
console.log("Setting up secure backend service for Mongoose ORM Integration");Use this mongoose orm integration pattern when a Backend Development task needs a small, readable starting point.
Authentication JWT Session
// Backend Core Script for Authentication JWT Session
console.log("Setting up secure backend service for Authentication JWT Session");Use this authentication jwt session pattern when a Backend Development task needs a small, readable starting point.
Password Hashing Bcrypt
// Backend Core Script for Password Hashing Bcrypt
console.log("Setting up secure backend service for Password Hashing Bcrypt");Use this password hashing bcrypt pattern when a Backend Development task needs a small, readable starting point.
Authorization Roles Guard
// Backend Core Script for Authorization Roles Guard
console.log("Setting up secure backend service for Authorization Roles Guard");Use this authorization roles guard pattern when a Backend Development task needs a small, readable starting point.