We add MongoDB support to our rest api. Fully persisting data using Mongo Atlas.
Part 1 here: • Coding Along: Boardgame REST API - Part 1
Mongo atlas: https://www.mongodb.com/cloud/atlas
MongoDB Nodejs driver documentation: https://docs.mongodb.com/drivers/node...
Tutorial on Mongo Atlas first time setup: • Web 2 - MongoDB Demo
*Note: tutorial from 2020. Some steps are slightly different
Timestamps:
00:00 - Intro
00:49 - What you need
02:25 - Installing the mongodb NodeJS driver
05:33 - GET all boardgames
10:11 - Testing the first route
13:50 - GET boardgame with id
19:43 - Testing the second route
20:26 - Fixing data and finalizing route
24:52 - POST boardgame data to database
31:14 - Testing the last route
32:34 - Outro