You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
✏️ *Replace `$APP_NAME` with the name for your unique app.*
88
85
89
86
```bash
90
-
npx create-react-app@2.x $APP_NAME
87
+
npx create-react-app@3.x $APP_NAME
91
88
cd$APP_NAME
92
89
```
93
90
91
+
* as of create-react-app v3, it automatically performs `git init` and an initial commit
94
92
*[npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f)
95
93
* if [yarn](https://yarnpkg.com) is installed locally, the new app will use it instead of [npm](https://www.npmjs.com)
96
94
97
-
### Make it a git repo
98
-
99
-
```bash
100
-
git init
101
-
```
102
-
103
-
At this point, this new repo is local, only on your computer. Eventually, you may want to [push to Github](#user-content-push-to-github).
104
-
105
95
### Create the Heroku app
106
96
107
97
✏️ *Replace `$APP_NAME` with the name for your unique app.*
@@ -116,11 +106,9 @@ This command:
116
106
* sets the app to use this [buildpack](https://devcenter.heroku.com/articles/buildpacks)
117
107
* configures the [`heroku` git remote](https://devcenter.heroku.com/articles/git#creating-a-heroku-remote) in the local repo, so `git push heroku master` will push to this new Heroku app.
118
108
119
-
### Commit & deploy ♻️
109
+
### Deploy ♻️
120
110
121
111
```bash
122
-
git add .
123
-
git commit -m "Start with create-react-app"
124
112
git push heroku master
125
113
```
126
114
@@ -146,7 +134,7 @@ Find the app on [your dashboard](https://dashboard.heroku.com).
146
134
147
135
Work with your app locally using `npm start`. See: [create-react-app docs](https://github.com/facebookincubator/create-react-app#getting-started)
0 commit comments