Coder Social home page Coder Social logo

dwad22-express's Introduction

How to create a new nodejs application

  1. Create a new folder or directory for the application

  2. cd into that directory

  3. Enter npm init and press the ENTER key until you see your prompt again Or npm init -y

  4. Add the express package by: yarn add express (make sure that the prompt is in the project directory -- the directory for your node application) or npm install express

  • Other dependecies will be: hbs and wax-on

4b. To install yarn, you just type npm install -g yarn

  1. Don't modify any files in the node_modules folder and also make sure it don't go up to .github

  2. Creating a .gitignore file

  3. Install node monitor so that we don't have to keep restarting our server. In the terminal, type in: npm install -g nodemon

If using MacOS, you have to write sudo npm install -g nodemon

  1. In the terminal (after making sure that the project folder is correct), we will install hbs (handlebars) with
yarn add hbs
  1. Create a folder name views and that will store all our template files (view files)

dwad22-express's People

Contributors

kunxin-chor avatar

Watchers

James Cloos avatar  avatar

Forkers

charissayeong

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.