Skip to content

losrobbos/express-snippets

Repository files navigation

express-snippets

Find here Step-by-Step snippets on how you can build up an API using the Express-Frameworks.

These snippets cover:

  • Basic Routing
  • Receiving and parsing BODY data
  • Applying Middleware (e.g. for parsing JSON data from body)
  • Database Connection and first Data insert
  • Database Schema & Model
  • Making calls to database from API routes
  • Full CRUD routes (Create, Read, Update, Delete items in database)
  • Relationships between data (e.g. a user can have multiple todo items)
  • Authentication using JWT Tokens
  • Password Hashing on Signup & Login
  • Example of an XSS attack against an API that does not validate incoming data

These fundamental concepts should give you a nice starting point for getting into your backend journey.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published