ofnullable / react-spa-template

:tada: React Single Page App template without CRA :tada:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎉 React SPA Template 🎉

An easy-to-use react template

  • React Single-Page-Application template without create-react-app
  • Configured with Webpack, Babel, ESLint, Sass, PostCSS and emotion
  • If you need anything else, please contribute or leave an issue!

Live demo

https://ofnullable.github.io/react-spa-template

Installation

# clone this repository
$ git clone https://github.com/ofnullable/react-spa-template

# go into template directory
$ cd react-spa-template

# install dependencies
$ npm install

Commands

Run dev server

$ npm start

Run dev server on http://localhost:8080

Build

$ npm run build

Creating a Production Build. The build artifacts will be stored in the dist/ directory.

Deploy github pages

# edit package.json
{
  ...
  "hompage": "https://{github username}.github.io/{repository name}",
}
$ npm run deploy

Deploy to github pages

About

:tada: React Single Page App template without CRA :tada:

License:MIT License


Languages

Language:JavaScript 95.1%Language:HTML 2.9%Language:SCSS 2.0%