Web Demo Project
We have a Node.js app for you to get started in web dev! This is a continuously developed project and will be used for future web tutorials!
What's important right now is that with Node.js installed, you're able to run the the project successfully and configure your tools to work with it (e.g. you can send HTTP requests via Postman/Insomnia through localhost to the Node.js server).
See the project here:
Once you've cloned the repository, this will be the general workflow:
check the
package.json
filerun
npm i
ornpm install
to install the required dependencies through npm.run
npm run dev
ornode <filename>.js
to execute a runtime to run the file.For this project specifically, visit
localhost:8080
and if you see the following screen, you've made it!
Concept Check Questions:
Do some of your own digging through the repository and answer the following questions:
What is the tool that manages node packages?
What command line command triggers this tool?
How do we install the required dependencies?
If we wanted to add dependencies to our project, where can we look?
Which file holds the dependencies?
Typically, to run a Node.js file, the command to start it is
node <file>.js
. What other commands can we run to start the server?If we want to make more of these custom commands, where do we put it?
What does
nodemon
do? How is it used?
Next, please go to Assignment 1: HTTP Requests to complete the first assignment.
Last updated