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 | ||||
|  |  | |||
|  | @ -1,5 +1,8 @@ | |||
| --- | ||||
| tags: [backend, node-js, REST, APIs] | ||||
| tags: | ||||
|   - node-js | ||||
|   - REST | ||||
|   - APIs | ||||
| --- | ||||
| 
 | ||||
| # 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 | ||||
|  |  | |||
|  | @ -1,5 +1,8 @@ | |||
| --- | ||||
| tags: [backend, node-js, REST, APIs] | ||||
| tags: | ||||
|   - node-js | ||||
|   - REST | ||||
|   - APIs | ||||
| --- | ||||
| 
 | ||||
| # 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 | ||||
|  | @ -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 | ||||
|  | @ -1,5 +1,9 @@ | |||
| --- | ||||
| tags: [mongo-db, node-js, mongoose] | ||||
| tags: | ||||
|   - mongo-db | ||||
|   - node-js | ||||
|   - mongoose | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Adding documents to a collection | ||||
|  | @ -1,7 +1,6 @@ | |||
| --- | ||||
| tags: | ||||
|   - SQL | ||||
|   - relational-databases | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - frontend | ||||
| tags: [] | ||||
| --- | ||||
| 
 | ||||
| # Basics of Web Components | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [binary, binary-arithmetic] | ||||
| tags: | ||||
|   - binary | ||||
| --- | ||||
| 
 | ||||
| # Binary addition | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [binary, binary-arithemetic] | ||||
| tags: | ||||
|   - binary | ||||
| --- | ||||
| 
 | ||||
| # Binary multiplication | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [binary, binary-encoding] | ||||
| tags: | ||||
|   - binary | ||||
| --- | ||||
| 
 | ||||
| # Binary encoding of colours | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [binary, binary-encoding] | ||||
| tags: | ||||
|   - binary | ||||
| --- | ||||
| 
 | ||||
| # Binary encoding | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [binary, binary-encoding] | ||||
| tags: | ||||
|   - binary | ||||
| --- | ||||
| 
 | ||||
| # 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 | ||||
|  | @ -1,5 +1,9 @@ | |||
| --- | ||||
| tags: [mongo-db, node-js, mongoose] | ||||
| tags: | ||||
|   - mongo-db | ||||
|   - node-js | ||||
|   - mongoose | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # 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 | ||||
|  | @ -1,7 +1,6 @@ | |||
| --- | ||||
| tags: | ||||
|   - SQL | ||||
|   - relational-databases | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,9 @@ | |||
| --- | ||||
| tags: [mongo-db, node-js, mongoose] | ||||
| tags: | ||||
|   - mongo-db | ||||
|   - node-js | ||||
|   - mongoose | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Creating a schema and model | ||||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Data types in MySQL | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [relational-databases] | ||||
| tags: | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # database indices | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Deleting data in SQL | ||||
|  |  | |||
|  | @ -4,6 +4,7 @@ title: DynamoDB | |||
| tags: | ||||
|   - AWS | ||||
|   - databases | ||||
|   - dynamodb | ||||
| created: Sunday, June 09, 2024 | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [AWS, backend] | ||||
| tags: | ||||
|   - AWS | ||||
| --- | ||||
| 
 | ||||
| # Fetch from Secrets Manager | ||||
|  |  | |||
|  | @ -1,7 +1,6 @@ | |||
| --- | ||||
| tags: | ||||
|   - SQL | ||||
|   - relational-databases | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,8 @@ | |||
| --- | ||||
| tags: [backend, node-js, REST, APIs] | ||||
| tags: | ||||
|   - node-js | ||||
|   - REST | ||||
|   - APIs | ||||
| --- | ||||
| 
 | ||||
| # Creating a RESTful API: Full example | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [AWS, aws-lambda, backend] | ||||
| tags: | ||||
|   - AWS | ||||
|   - aws-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 | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Joins in SQL | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [AWS, aws-lambda, backend] | ||||
| tags: | ||||
|   - AWS | ||||
|   - aws-lambda | ||||
| --- | ||||
| 
 | ||||
| # AWS Lambda handler function | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [AWS, aws-lambda, backend] | ||||
| tags: | ||||
|   - AWS | ||||
|   - aws-lambda | ||||
| --- | ||||
| 
 | ||||
| # AWS Lambda programming model | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
|   - middleware | ||||
| --- | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
|   - middleware | ||||
| --- | ||||
|  |  | |||
|  | @ -1,5 +1,9 @@ | |||
| --- | ||||
| tags: [docker, SQL, node-js] | ||||
| tags: | ||||
|   - docker | ||||
|   - SQL | ||||
|   - node-js | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Docker example: NodeJS backend with MySQL database | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,8 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases, regex] | ||||
| tags: | ||||
|   - SQL | ||||
|   - regex | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Regular expressions in SQL | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| --- | ||||
| tags: [relational-databases] | ||||
| tags: [] | ||||
| --- | ||||
| 
 | ||||
| # Relational database architecture | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [AWS, aws-lambda, backend] | ||||
| tags: | ||||
|   - AWS | ||||
|   - aws-lambda | ||||
| --- | ||||
| 
 | ||||
| # AWS Lambda examples | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Retrieve data from table with SQL `SELECT` statement | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [relational-databases] | ||||
| tags: | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Unique key | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| --- | ||||
| tags: [binary, binary-encoding] | ||||
| tags: | ||||
|   - binary | ||||
| --- | ||||
| 
 | ||||
| # Signed and unsigned numbers | ||||
|  |  | |||
|  | @ -1,7 +1,8 @@ | |||
| --- | ||||
| id: 3wsh | ||||
| title: Signed_magnitude_representation | ||||
| tags: [binary, binary-encoding] | ||||
| tags: | ||||
|   - binary | ||||
| created: Wednesday, March 20, 2024 | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,9 @@ | |||
| --- | ||||
| tags: [backend, node-js, REST, APIs, mongo-db] | ||||
| tags: | ||||
|   - node-js | ||||
|   - REST | ||||
|   - APIs | ||||
|   - mongo-db | ||||
| --- | ||||
| 
 | ||||
| # Structuring Express applications | ||||
|  |  | |||
|  | @ -1,7 +1,8 @@ | |||
| --- | ||||
| id: gktb | ||||
| title: Two's complement | ||||
| tags: [binary, binary-encoding] | ||||
| tags: | ||||
|   - binary | ||||
| created: Tuesday, March 19, 2024 | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Updating an SQL table | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Update existing data with the SQL `UPDATE` command | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Useful operators in SQL | ||||
|  |  | |||
|  | @ -1,5 +1,8 @@ | |||
| --- | ||||
| tags: [backend, node-js, REST, APIs] | ||||
| tags: | ||||
|   - node-js | ||||
|   - REST | ||||
|   - APIs | ||||
| --- | ||||
| 
 | ||||
| # Creating a RESTful API: Validation | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| --- | ||||
| tags: [relational-databases] | ||||
| tags: [] | ||||
| --- | ||||
| 
 | ||||
| # Views in relational databases | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| --- | ||||
| tags: [SQL, relational-databases] | ||||
| tags: | ||||
|   - SQL | ||||
|   - databases | ||||
| --- | ||||
| 
 | ||||
| # Wildcards in SQL | ||||
|  |  | |||
							
								
								
									
										1
									
								
								zk/fs.md
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								zk/fs.md
									
										
									
									
									
								
							|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										1
									
								
								zk/v8.md
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								zk/v8.md
									
										
									
									
									
								
							|  | @ -1,6 +1,5 @@ | |||
| --- | ||||
| tags: | ||||
|   - backend | ||||
|   - node-js | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 thomasabishop
						thomasabishop