# razzle-examples-with-heroku

> ## How to use

Latest version **3.0.0** (published 2019-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install razzle-examples-with-heroku
pnpm add razzle-examples-with-heroku
yarn add razzle-examples-with-heroku
bun add razzle-examples-with-heroku
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-04-16 |
| First published | 2018-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 36.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jaredpalmer |

## Links

- npm: https://www.npmjs.com/package/razzle-examples-with-heroku
- npm.io page: https://npm.io/package/razzle-examples-with-heroku

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^16.0.0
- [razzle](https://npm.io/package/razzle.md) ^3.0.0
- [express](https://npm.io/package/express.md) ^4.15.2
- [react-dom](https://npm.io/package/react-dom.md) ^16.0.0

## Recent versions

- 3.0.0 (latest) — 2019-04-16
- 3.0.0-alpha.2 (next) — 2019-01-07
- 3.0.0-alpha.1 — 2019-01-03
- 2.4.1 — 2019-01-03
- 3.0.0-alpha.0 — 2018-11-14

## README

# Razzle Heroku Deployment example

## How to use

Download the example [or clone the whole project](https://github.com/jaredpalmer/razzle.git):

```bash
curl https://codeload.github.com/jaredpalmer/razzle/tar.gz/master | tar -xz --strip=2 razzle-master/examples/with-heroku
cd with-heroku
```

### Install it and run locally:

```bash
yarn install
yarn start
```

### Deploy to Heroku:

[Heroku](https://www.heroku.com/) manages app deployments with [Git](https://devcenter.heroku.com/articles/git) so:

#### Setup Git:

```bash
git init
git add
git commit -m "Heroku deployment, first commit"
```

#### Setup Heroku:

* Create a Heroku [account](https://signup.heroku.com/)
* Install Heroku [CLI](https://devcenter.heroku.com/articles/heroku-cli) and [authenticate](https://devcenter.heroku.com/articles/authentication)
* Create Heroku app: `heroku create`
  * or `heroku create <appname>` if you want to specify an app name (checks for unique app name)
  * or `heroku git:remote -a <appname>` if you already created an App in the [dashboard](https://dashboard.heroku.com/apps)
* Verify with `git remote -v`:

```
heroku	https://git.heroku.com/<appname>.git (fetch)
heroku	https://git.heroku.com/<appname>.git (push)
```

#### Deployment

* `yarn deploy` or `git push heroku master`
  * or from another branch, other than **master**: `git push heroku <feature-branch>:master`
* Console should complete with: **_https://appname.herokuapp.com/ deployed to Heroku_**
* Verify app by opening **_https://appname.herokuapp.com/_**

#### 👉 Please note

* Heroku expects a `yarn.lock` file to be able to recognise _yarn_ as your package manager and process the `yarn` commands - so make sure to run `yarn install` before deployment, and to commit the `yarn.lock` file.

## Idea behind the example

This is a basic example of how to use razzle and deploy to [Heroku](https://www.heroku.com/) with [Git](https://devcenter.heroku.com/articles/git).

---
_Source: https://npm.io/package/razzle-examples-with-heroku · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
