5 methods you can use to deploy your web app -Part 4(Now)
Published in
2 min readJul 5, 2018
Part -1 Here
Part -2 Here
Part-3 Here
Part-5 Here
4. Now
According to their official site:
now allows you to take your JavaScript (Node.js) or Docker powered websites, applications and services to the cloud with ease,
speed and reliability. In practical terms, any directory that contains apackage.json
orDockerfile
can be transported to the cloud with one command:now
.
Now seems to be pretty eager on becoming the simplest deployment option available.
Prerequisites
- Install Node(npm) on your system.
- Works best for Node based applications.
Install & Configure
- Open terminal and type
npm install -g now
- Then type
now login
- Enter and verify mail.
- Open root project directory.
- If not created already, create a package.json file in the root directory of project.
- Open package.json and add following script and dependency.
Deploy
After adding scripts open terminal, and type
now
You should receive a url after successful deployment like below.
That’s all folks
Last deployment method coming soon! Peace out.