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

View file

@ -1,5 +1,8 @@
---
tags: [backend, node-js, REST, APIs]
tags:
- node-js
- REST
- APIs
---
# 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

View file

@ -1,5 +1,8 @@
---
tags: [backend, node-js, REST, APIs]
tags:
- node-js
- REST
- APIs
---
# 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
@ -12,10 +17,10 @@ the array.
## Set-up
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)
- [Connect to MongoDB database](Connect_to_database.md)
- [Create MongoDB database](Create_Mongo_database.md)
- [Connect to MongoDB database](Connect_to_Mongo_database.md)
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
from and added to the database. We will mainly be using the Mongo syntax defined
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.
### 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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,6 @@
---
tags: [binary, binary-encoding]
tags:
- binary
---
# 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

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

View file

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

View file

@ -1,7 +1,6 @@
---
tags:
- SQL
- relational-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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,6 @@
---
tags:
- SQL
- relational-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

View file

@ -1,6 +1,5 @@
---
tags:
- backend
- 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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,5 @@
---
tags:
- backend
- node-js
- 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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,5 @@
---
tags:
- backend
- 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

View file

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

View file

@ -1,5 +1,7 @@
---
tags: [SQL, relational-databases]
tags:
- SQL
- databases
---
# 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

View file

@ -1,5 +1,7 @@
---
tags: [SQL, relational-databases]
tags:
- SQL
- databases
---
# 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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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