Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Update tutorial app creation command #4187

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ This 30 minutes tutorial will expose how to create a new admin app based on an e
React-admin uses React. We'll use Facebook's [create-react-app](https://github.com/facebookincubator/create-react-app) to create an empty React app, and install the `react-admin` package:

```sh
npm install -g create-react-app
create-react-app test-admin
npx create-react-app test-admin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
npx create-react-app test-admin
npx create-react-app test-admin
# or
yarn create react-app test-admin
# or
npm init react-app test-admin

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know about these extra commands. Thanks! That being said, I'm not sure we should be so exhaustive to keep it simple. But your choice! :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a yarn user, I only knew about npx and yarn create. Just discovered npm had an init :)

cd test-admin/
yarn add react-admin ra-data-json-server prop-types
yarn start
Expand Down