Simple single-page React app. Inspired by Minimill's project template.
- React with React Hotloader to write our single-page app.
- Redux, React Router and axios.
- SCSS to keep our CSS organized into logical components.
- Autoprefixer to automatically insert browser prefixes where necessary to handle cross browser compatibility.
- Webpack to launch a development server, and automatically reload the page whenever we change things.
- Standard JavaScript code style
All with one command from the terminal:
yarn start
Install yarn. Then run:
yarn
Keep this running in the background:
yarn start
Auto format your code:
yarn format
Create a production build of the app:
yarn dist
├── config.json # site config vars that get injected into index.html
├── README.md # This file
├── build/ # Webpack builds the static site into this directory
├── package.json # Dependencies
└── src/ # All source code
├── entry.js # Webpack entry point
├── font/ # Font files
├── img/ # Images and SVGs
└── js/ # Javascript libraries and scripts
├── components/ # React components
├── helpers/ # Helper files
├── store/ # Redux logic
├── sass/ # Stylesheets
If you want to use this repo for your next project, make sure to make the following changes:
- Edit
config.json
, filling in the HTML metadata associated with your site. - Edit
package.json
providing aname
,version
,description
,license
, andrepository.url
. - Remove the
.git
folder, so that you start from a fresh commit history. - Edit
LICENSE
andREADME.md
files.