Autosave: 2024-06-15 11:00:03
This commit is contained in:
parent
23f61b00c8
commit
6b5e7c745a
61 changed files with 138 additions and 65 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- SQL
|
- SQL
|
||||||
- relational-databases
|
|
||||||
- databases
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags: []
|
||||||
- frontend
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Basics of Web Components
|
# Basics of Web Components
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [binary, binary-arithmetic]
|
tags:
|
||||||
|
- binary
|
||||||
---
|
---
|
||||||
|
|
||||||
# Binary addition
|
# Binary addition
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [binary, binary-arithemetic]
|
tags:
|
||||||
|
- binary
|
||||||
---
|
---
|
||||||
|
|
||||||
# Binary multiplication
|
# Binary multiplication
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [binary, binary-encoding]
|
tags:
|
||||||
|
- binary
|
||||||
---
|
---
|
||||||
|
|
||||||
# Binary encoding of colours
|
# Binary encoding of colours
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [binary, binary-encoding]
|
tags:
|
||||||
|
- binary
|
||||||
---
|
---
|
||||||
|
|
||||||
# Binary encoding
|
# Binary encoding
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [binary, binary-encoding]
|
tags:
|
||||||
|
- binary
|
||||||
---
|
---
|
||||||
|
|
||||||
# Text encoding
|
# Text encoding
|
||||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- SQL
|
- SQL
|
||||||
- relational-databases
|
|
||||||
- databases
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [SQL, relational-databases]
|
tags:
|
||||||
|
- SQL
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Data types in MySQL
|
# Data types in MySQL
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [relational-databases]
|
tags:
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# database indices
|
# database indices
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [SQL, relational-databases]
|
tags:
|
||||||
|
- SQL
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Deleting data in SQL
|
# Deleting data in SQL
|
||||||
|
|
|
@ -4,6 +4,7 @@ title: DynamoDB
|
||||||
tags:
|
tags:
|
||||||
- AWS
|
- AWS
|
||||||
- databases
|
- databases
|
||||||
|
- dynamodb
|
||||||
created: Sunday, June 09, 2024
|
created: Sunday, June 09, 2024
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [AWS, backend]
|
tags:
|
||||||
|
- AWS
|
||||||
---
|
---
|
||||||
|
|
||||||
# Fetch from Secrets Manager
|
# Fetch from Secrets Manager
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- SQL
|
- SQL
|
||||||
- relational-databases
|
|
||||||
- databases
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [SQL]
|
tags:
|
||||||
|
- SQL
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Joins in SQL
|
# Joins in SQL
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [AWS, aws-lambda, backend]
|
tags:
|
||||||
|
- AWS
|
||||||
|
- aws-lambda
|
||||||
---
|
---
|
||||||
|
|
||||||
# AWS Lambda handler function
|
# AWS Lambda handler function
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [AWS, aws-lambda, backend]
|
tags:
|
||||||
|
- AWS
|
||||||
|
- aws-lambda
|
||||||
---
|
---
|
||||||
|
|
||||||
# AWS Lambda programming model
|
# AWS Lambda programming model
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
- middleware
|
- middleware
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
- middleware
|
- middleware
|
||||||
---
|
---
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
tags: [SQL, relational-databases, regex]
|
tags:
|
||||||
|
- SQL
|
||||||
|
- regex
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Regular expressions in SQL
|
# Regular expressions in SQL
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
tags: [relational-databases]
|
tags: []
|
||||||
---
|
---
|
||||||
|
|
||||||
# Relational database architecture
|
# Relational database architecture
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [AWS, aws-lambda, backend]
|
tags:
|
||||||
|
- AWS
|
||||||
|
- aws-lambda
|
||||||
---
|
---
|
||||||
|
|
||||||
# AWS Lambda examples
|
# AWS Lambda examples
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [relational-databases]
|
tags:
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Unique key
|
# Unique key
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
tags: [binary, binary-encoding]
|
tags:
|
||||||
|
- binary
|
||||||
---
|
---
|
||||||
|
|
||||||
# Signed and unsigned numbers
|
# Signed and unsigned numbers
|
||||||
|
|
|
@ -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
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [SQL, relational-databases]
|
tags:
|
||||||
|
- SQL
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Updating an SQL table
|
# Updating an SQL table
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [SQL, relational-databases]
|
tags:
|
||||||
|
- SQL
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Useful operators in SQL
|
# Useful operators in SQL
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
tags: [relational-databases]
|
tags: []
|
||||||
---
|
---
|
||||||
|
|
||||||
# Views in relational databases
|
# Views in relational databases
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
---
|
---
|
||||||
tags: [SQL, relational-databases]
|
tags:
|
||||||
|
- SQL
|
||||||
|
- databases
|
||||||
---
|
---
|
||||||
|
|
||||||
# Wildcards in SQL
|
# Wildcards in SQL
|
||||||
|
|
1
zk/fs.md
1
zk/fs.md
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
1
zk/v8.md
1
zk/v8.md
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tags:
|
tags:
|
||||||
- backend
|
|
||||||
- node-js
|
- node-js
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue