Autosave: 2024-06-15 11:00:03

This commit is contained in:
thomasabishop 2024-06-15 11:00:03 +01:00
parent 23f61b00c8
commit 6b5e7c745a
61 changed files with 138 additions and 65 deletions

View file

@ -1,5 +1,8 @@
--- ---
tags: [backend, node-js, REST, APIs] tags:
- node-js
- REST
- APIs
--- ---
# Creating a RESTful API: Introduction # Creating a RESTful API: Introduction

View file

@ -1,5 +1,8 @@
--- ---
tags: [backend, node-js, REST, APIs] tags:
- node-js
- REST
- APIs
--- ---
# Creating a RESTful API: `GET` requests # Creating a RESTful API: `GET` requests

View file

@ -1,5 +1,8 @@
--- ---
tags: [backend, node-js, REST, APIs] tags:
- node-js
- REST
- APIs
--- ---
# Creating a RESTful API: `POST` requests # Creating a RESTful API: `POST` requests

View file

@ -1,5 +1,8 @@
--- ---
tags: [backend, node-js, REST, APIs] tags:
- node-js
- REST
- APIs
--- ---
# Creating a RESTful API: `PUT` requests # Creating a RESTful API: `PUT` requests

View file

@ -1,5 +1,10 @@
--- ---
tags: [backend, node-js, REST, APIs, mongo-db] tags:
- node-js
- REST
- APIs
- mongo-db
- databases
--- ---
# Creating a RESTful API: Integrating the database # Creating a RESTful API: Integrating the database
@ -12,10 +17,10 @@ the array.
## Set-up ## Set-up
We will follow the routine for establishing a MongoDB instance as detailed in We will follow the routine for establishing a MongoDB instance as detailed in
[my notes](Connect_to_database.md) on Mongo: [my notes](Connect_to_Mongo_database.md) on Mongo:
- [Create MongoDB database](Create_database.md) - [Create MongoDB database](Create_Mongo_database.md)
- [Connect to MongoDB database](Connect_to_database.md) - [Connect to MongoDB database](Connect_to_Mongo_database.md)
Our `index.js` now looks like the following: Our `index.js` now looks like the following:
@ -120,7 +125,7 @@ const Course = mongoose.model(
Now we need to rewrite our RESTful request handlers so that the data is sourced Now we need to rewrite our RESTful request handlers so that the data is sourced
from and added to the database. We will mainly be using the Mongo syntax defined from and added to the database. We will mainly be using the Mongo syntax defined
at [Querying a collection](Querying_a_collection.md) and at [Querying a collection](Querying_a_collection.md) and
[Adding documents to a collection](Adding_documents_to_a_collection.md). [Adding documents to a collection](Adding_documents_to_a_Mongo_collection.md).
We will also keep API validation within the `/model/` file. We will also keep API validation within the `/model/` file.
### GET ### GET

View file

@ -1,5 +1,9 @@
--- ---
tags: [mongo-db, node-js, mongoose] tags:
- mongo-db
- node-js
- mongoose
- databases
--- ---
# Adding documents to a collection # Adding documents to a collection

View file

@ -1,7 +1,6 @@
--- ---
tags: tags:
- SQL - SQL
- relational-databases
- databases - databases
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags: []
- frontend
--- ---
# Basics of Web Components # Basics of Web Components

View file

@ -1,5 +1,6 @@
--- ---
tags: [binary, binary-arithmetic] tags:
- binary
--- ---
# Binary addition # Binary addition

View file

@ -1,5 +1,6 @@
--- ---
tags: [binary, binary-arithemetic] tags:
- binary
--- ---
# Binary multiplication # Binary multiplication

View file

@ -1,5 +1,6 @@
--- ---
tags: [binary, binary-encoding] tags:
- binary
--- ---
# Binary encoding of colours # Binary encoding of colours

View file

@ -1,5 +1,6 @@
--- ---
tags: [binary, binary-encoding] tags:
- binary
--- ---
# Binary encoding # Binary encoding

View file

@ -1,5 +1,6 @@
--- ---
tags: [binary, binary-encoding] tags:
- binary
--- ---
# Text encoding # Text encoding

View file

@ -1,5 +1,9 @@
--- ---
tags: [mongo-db, node-js, mongoose] tags:
- mongo-db
- node-js
- mongoose
- databases
--- ---
# MongoDB connection, set-up and data query: complete example # MongoDB connection, set-up and data query: complete example

View file

@ -1,5 +1,9 @@
--- ---
tags: [mongo-db, node-js, mongoose] tags:
- mongo-db
- node-js
- mongoose
- databases
--- ---
# Connect to a database with Mongoose # Connect to a database with Mongoose

View file

@ -1,5 +1,9 @@
--- ---
tags: [mongo-db, node-js, mongoose] tags:
- mongo-db
- node-js
- mongoose
- databases
--- ---
# Creating a MongoDB database # Creating a MongoDB database

View file

@ -1,7 +1,6 @@
--- ---
tags: tags:
- SQL - SQL
- relational-databases
- databases - databases
--- ---

View file

@ -1,5 +1,9 @@
--- ---
tags: [mongo-db, node-js, mongoose] tags:
- mongo-db
- node-js
- mongoose
- databases
--- ---
# Creating a schema and model # Creating a schema and model

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Data types in MySQL # Data types in MySQL

View file

@ -1,5 +1,6 @@
--- ---
tags: [relational-databases] tags:
- databases
--- ---
# database indices # database indices

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Deleting data in SQL # Deleting data in SQL

View file

@ -4,6 +4,7 @@ title: DynamoDB
tags: tags:
- AWS - AWS
- databases - databases
- dynamodb
created: Sunday, June 09, 2024 created: Sunday, June 09, 2024
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,5 +1,6 @@
--- ---
tags: [AWS, backend] tags:
- AWS
--- ---
# Fetch from Secrets Manager # Fetch from Secrets Manager

View file

@ -1,7 +1,6 @@
--- ---
tags: tags:
- SQL - SQL
- relational-databases
- databases - databases
--- ---

View file

@ -1,5 +1,8 @@
--- ---
tags: [backend, node-js, REST, APIs] tags:
- node-js
- REST
- APIs
--- ---
# Creating a RESTful API: Full example # Creating a RESTful API: Full example

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,5 +1,7 @@
--- ---
tags: [AWS, aws-lambda, backend] tags:
- AWS
- aws-lambda
--- ---
# Handle multiple API Gateway endpoints in a single lambda # Handle multiple API Gateway endpoints in a single lambda

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Insert data into table with SQL `INSERT` statement # Insert data into table with SQL `INSERT` statement

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL] tags:
- SQL
- databases
--- ---
# Joins in SQL # Joins in SQL

View file

@ -1,5 +1,7 @@
--- ---
tags: [AWS, aws-lambda, backend] tags:
- AWS
- aws-lambda
--- ---
# AWS Lambda handler function # AWS Lambda handler function

View file

@ -1,5 +1,7 @@
--- ---
tags: [AWS, aws-lambda, backend] tags:
- AWS
- aws-lambda
--- ---
# AWS Lambda programming model # AWS Lambda programming model

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
- middleware - middleware
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
- middleware - middleware
--- ---

View file

@ -1,5 +1,9 @@
--- ---
tags: [docker, SQL, node-js] tags:
- docker
- SQL
- node-js
- databases
--- ---
# Docker example: NodeJS backend with MySQL database # Docker example: NodeJS backend with MySQL database

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,5 +1,8 @@
--- ---
tags: [SQL, relational-databases, regex] tags:
- SQL
- regex
- databases
--- ---
# Regular expressions in SQL # Regular expressions in SQL

View file

@ -1,5 +1,5 @@
--- ---
tags: [relational-databases] tags: []
--- ---
# Relational database architecture # Relational database architecture

View file

@ -1,5 +1,7 @@
--- ---
tags: [AWS, aws-lambda, backend] tags:
- AWS
- aws-lambda
--- ---
# AWS Lambda examples # AWS Lambda examples

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Retrieve data from table with SQL `SELECT` statement # Retrieve data from table with SQL `SELECT` statement

View file

@ -1,5 +1,6 @@
--- ---
tags: [relational-databases] tags:
- databases
--- ---
# Unique key # Unique key

View file

@ -1,5 +1,6 @@
--- ---
tags: [binary, binary-encoding] tags:
- binary
--- ---
# Signed and unsigned numbers # Signed and unsigned numbers

View file

@ -1,7 +1,8 @@
--- ---
id: 3wsh id: 3wsh
title: Signed_magnitude_representation title: Signed_magnitude_representation
tags: [binary, binary-encoding] tags:
- binary
created: Wednesday, March 20, 2024 created: Wednesday, March 20, 2024
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,5 +1,9 @@
--- ---
tags: [backend, node-js, REST, APIs, mongo-db] tags:
- node-js
- REST
- APIs
- mongo-db
--- ---
# Structuring Express applications # Structuring Express applications

View file

@ -1,7 +1,8 @@
--- ---
id: gktb id: gktb
title: Two's complement title: Two's complement
tags: [binary, binary-encoding] tags:
- binary
created: Tuesday, March 19, 2024 created: Tuesday, March 19, 2024
--- ---

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Updating an SQL table # Updating an SQL table

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Update existing data with the SQL `UPDATE` command # Update existing data with the SQL `UPDATE` command

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Useful operators in SQL # Useful operators in SQL

View file

@ -1,5 +1,8 @@
--- ---
tags: [backend, node-js, REST, APIs] tags:
- node-js
- REST
- APIs
--- ---
# Creating a RESTful API: Validation # Creating a RESTful API: Validation

View file

@ -1,5 +1,5 @@
--- ---
tags: [relational-databases] tags: []
--- ---
# Views in relational databases # Views in relational databases

View file

@ -1,5 +1,7 @@
--- ---
tags: [SQL, relational-databases] tags:
- SQL
- databases
--- ---
# Wildcards in SQL # Wildcards in SQL

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---

View file

@ -1,6 +1,5 @@
--- ---
tags: tags:
- backend
- node-js - node-js
--- ---