March 22, 2020
Estimated Post Reading Time ~

Setting up an environment to run Progressive Web Applications (PWA)

We need the Node Package Manager for running this tutorial. Follow the below steps to install node and related tools.

Step 1: Install npm, Node
As part of deploying PWA, we will use Node js & Node Package Manager(npm). While installing Node.js, we will automatically get npm installed on the computer.

Use this link for node js download. https://nodejs.org/en/

List of all Operating System installers: https://nodejs.org/en/download/package-manager

Once npm and node are installed, ensure the below commands are returning respective versions to confirm the installation was successful.

cmd> node -v
cmd> npm -v


Step 2: Install Serve
Serve helps to develop a static PWA project, Whenever there is a single page application or just a static file needs to be deployed, we can use the 'serve' module.

Follow the below steps to install serve. More details here [https://www.npmjs.com/package/serve]

Execute the below command to install serve.
cmd> npm install -g serve

Once the service package is installed, please ensure the installation was successful by running the below command.

cmd> serve -v

Once the server module is installed, you can go inside any folder and just run the below command to start the server and deploy the single page.

cmd> serve .


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.