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.