Always the latest version of create-react-app with awesome configurations (linter, commit linter, husky, .editorconfig, etc)
npm install -g awesome-react-app
awesome-react-app my-app
cd my-app/
npm startThen open http://localhost:3000/ to see your app.
When you’re ready to deploy to production, create a minified bundle with npm run build.
You need to have create-react-app installed.
You don’t need to install or configure tools like Webpack or Babel.
They are preconfigured and hidden so that you can focus on the code.
Just create a project, answer the hooks questions and you’re good to go.
Install it once globally:
npm install -g awesome-react-appYou’ll need to have Node >= 6 on your machine. You can use nvm to easily switch Node versions between different projects.
You’ll need to have Create React App on your machine. Awesome React App is a wrapper from Create React App with some cool stuff (linter, commit linter, husky, .editorconfig, etc).
To create a new app, run:
awesome-react-app my-app
cd my-appIt will create a directory called my-app inside the current folder.
Inside that directory, it will ask to you for add some configurations (eslint,
editorconfig) and generate the initial project structure and install the dependencies.
Once the installation is done, you can run some commands inside the project folder:
Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.
Runs the test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
By default, it also includes a service worker so that your app loads from local cache on future visits.
Your app is ready to be deployed.
You can see the Official Create React App User Guide for more information on different topics.
We'd love to have your helping hand on awesome-react-app! See CONTRIBUTING.md for more information on what we're looking for and how to get started.