Express js install in Termux | Express.js with node.js in Android

What is Express.js ?

Express.js, or simply Express, is a web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs. It has been called the de facto standard server framework for Node.js.

How to install Express.js ?

Open termux app and type following commands :
  • $ pkg install nodejs
  • $ npm install -g express
  • $ npm install -g express-generator

Create hello world express app

  • $ express --view=pug hello

Run express app

  • $ cd hello
  • $ npm install
  • $ npm start
It will run hello world express web app in your termux.

Comments

Post a Comment