NOTE: If you are not assigned as issue then please don't open a PR on it. This repository is only meant for educational purposes (teaching students github).
This repository contains a collection of simple Node.js programs for demonstratin purposes.
-
Fork the repository:
Click on the "Fork" button at the top right corner of this repository to create a copy in your GitHub account.
-
Clone the forked repository to your local machine:
git clone https://github.com/your-username/newton-school-lessons.git
-
Navigate to the project directory:
cd newton-school-lessons
-
Install dependencies for the main application using npm:
If the
express
module is required, run the following command in the terminal to dowload/update the modules:npm install
-
Run the main application using Node.js:
node server.js
This will start the server, and you should see output indicting that the server is running.
-
Open your web browser and visit http://localhost:PORT to see the main application in action.
Note: The default port is set to 3000. If you've configured a diffeent port, replace
PORT
in the URL with the actual port number.
-
Explore individual program folders:
Navigate to each program folder using the
cd
command:cd program1
bash cd program2
Replace `program1` and `program2` with the actual names of the folders representing individual programs.
-
Install dependencies and run each program in its respective folder:
For each program, run the following commands:
bash cd program-folder npm install node server.js
Replace `program-folder` with the actual folder nam of the program.
- This is a collection of basic demonstration applications intended for learning purposes.
- Feel free to explore each program's folder and the
server.js
file to understand the Node.js code. - For more information about Node.js, visit https://nodejs.org/.