An open API service indexing awesome lists of open source software.

https://github.com/softspiders/now

Zeit Now "HelloWorld" example
https://github.com/softspiders/now

hello-world min now serverless softspider softspiders ss starter template v2 zeit

Last synced: 8 months ago
JSON representation

Zeit Now "HelloWorld" example

Awesome Lists containing this project

README

          

[SOFTSPIDERS](https://github.com/softspiders/softspiders)

# now

*Zeit Now* "*HelloWorld*" example

## Feature tags

- now
- starter
- template
- zeit

## Direct descendants

[An Apollo Server & Client in a Next.js in a yarn Workspace deployed with Now 2.0](https://github.com/softspiders/zeit-now-next-typescript-graphql-apollo)

---

## Requirements

[Now CLI](https://zeit.co/docs/v2/getting-started/installation/#now-cli)

### Install *Now CLI*

```sh
npm install -g now
```

## Write code

```sh
mkdir now && cd now
```

We are now inside the *now* directory. Use your favorite text editor to create an *index.html* file with the following contents:

```html

Hello World


This is my first Now Deployment
```

## Deploy to Zeit Now

All we have to do now is run *now* from within the *now* directory:

```sh
now
```

The output looks like the following and includes a deployment URL:
![CLI console](basic-deployment-index.png)

## Check the deployment

Check the deployment for a live example: https://my-app-prtypks27.now.sh/

This URL is unique to the source code inside that directory. If you run now again, the same deployment is returned. This is why we call our deployments immutable.

## Authors

* [Zeit](https://zeit.co/) (c)
* [Alexander Lapygin](https://github.com/AlexanderLapygin) - catching in [Soft Spiders Net](https://github.com/softspider)

## Inspired by

[An Apollo Server & Client in a yarn Workspace deployed with Zeit 2.0](https://zeit.co/docs/v2/deployments/basics/)

### License

Licensed under the [MIT license](./LICENSE).