This is the code for the GT WebDev Node/Express Tutorial in the Fall of 2021. In the complete folder, you'll find the complete, working code. If you want to follow along with the video tutorial, you can find go to try-it folder and add code as you watch along. The steps are also enumerated in the instructions file.
You'll need to download Node.js, and if you would like to download Postman to test out your API, you'll need to download that as well. You can download Node.js at this link: https://nodejs.org/en/download/, and you can download Postman at this link: https://www.postman.com/downloads/.
If you're running into "ModuleNotFound" errors while trying to run the Node.js server, that probably means that you need to run the command npm install
to download all of your dependencies (libraries you're importing). If that still doesn't work, you may need install a library manually with npm install moduleName
, where moduleName
is the name of the module you are trying to install.
You can run the API by going to the completed code with the terminal command cd complete/server
and running node index.js
. You can close the server by simply clicking Command-C in the terminal shell.
My first tutorial about what APIs are can be found here: https://drive.google.com/file/d/1O7PhdUbBz4VXlT8LBrDNlfp01I9pY-Pe/view?usp=sharing
The presentation shown in that tutorial can be found here: https://docs.google.com/presentation/d/1ooc8-TQoofaG6D4kfGBYHpf7rnFX3167ESqdFVh0C9U/edit?usp=sharing
My second tutorial (the one using this codebase) about how to create an API with Node and Express can be found here: https://drive.google.com/file/d/1SuJmMWBqOyuMo1YDEPj0KQJorkTTv1gs/view?usp=sharing