Git Product home page Git Product logo

newton-school-lessons's Introduction

Simple Node.js Demo

This repository contains a collection of simple Node.js programs for demonstration purposes.

Dependency

How to install Node.js

  1. Installer method Just download the installer from [Node.js website] (https://nodejs.org/en/#home-downloadhead) --> Install it

  2. If you want to downlad the package with bash

    curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"
    
  3. Using Homebrew

    brew install node
    
  4. Using Macports

    port install nodejs<major version>
    
    
    # Example
    
    port install nodejs7
    '''
    
    
    

How to Run

  1. Fork the repository:

    Click on the "Fork" button at the top right corner of this repository to create a copy in your GitHub account.

  2. Clone the forked repository to your local machine:

    git clone https://github.com/your-username/newton-school-lessons.git
    
  3. Navigate to the project directory:

    cd newton-school-lessons
  4. 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
  5. 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.

  6. 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.

Folder-Specific Instructions

  1. 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.
    
    
  2. 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.

Notes

  • 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/.

newton-school-lessons's People

Contributors

ksakash avatar mk0904 avatar bhavishyasahay avatar johnpatrickancajas avatar srb77 avatar kush172005 avatar louispino avatar prince0906 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.