Deploy anything to web in under 3 minutes
How to get started
You can either download Now or you can simply install it using
npm install -g now
Once you installed it you can just type
now in the command line interface and if it’s your first time running this command it will ask you for an e-mail for the login.
Deploying Node API’s
And if you run
nowyou will see an output like this:
And as you can see, my simple application is now deployed under a random and unique URL that I can use to share with my co-workers or anyone that might help me testing it.
This is definitely one of the best things about Now! Generating a unique URL for every deploy can help you keeping record about different versions and making sure that a specific URL is the last version of your web application.
With Now all your deployments will be served over HTTP2 protocol and over secured connections!
But, what if I want a more user-friendly URL?
After deploying and testing your application, you probably will want to share it as a more friendly URL, right?
For that, just type:
$ now alias RANDOM_GENERATED_URL your_alias_here
And you will get something like this as a response:
If you want to use an external domain name as an alias, check this link.
And if you want to deploy a simple website or a more robust application using a
Dockerfile explore this page.
Checking the project source code
As I’m using the free plan of Now, all of my deployments have by default a
_srcpath that shows the complete project source code, as you can see at https://capretz-test.now.sh/_src.
Another cool feature on viewing the code source is that you can highlight parts of your code and share the URL that points directly to those lines: https://capretz-test.now.sh/_src/?f=index.js&h=24%3B11
Try it yourself!
I think you should give a try to Zeit and Now (they do have more products, for example Hyper, which is awesome!), and if you want more details about how to use Now and other cool features about it, check their official docs.
As always, I hope that this post help you to learn something new! If you liked it, click in the heart button below to recommend this post and follow me here on Medium and/or on Twitter.
Stay tuned for more posts here! See you soon.