A boilerplate client app built with React and Redux to be hosted on Surge.sh
-
Run
npm install
to install the dependencies. -
Run
npm start
to start the local web server. -
Go to
http://localhost:3000
to see the app running.
-
Run
npm run build
to compile all the files in abuild
folder. -
Run
npm run deploy
to uploadbuild
directory to Surge.sh.
The css files in css
directory and subdirectories are transpliles into (main.css
) with PostCSS.
All import
& require
files will be built at runtime to build/bundle.js
. Webpack automatically optimizes JavaScript with UglifyJS
.
Run npm test
for unit tests.
Add the images to HTML files
<!-- Normal Image -->
<img src="img/yourimg.png" />
<!-- Meta tags -->
<meta property="og:image" content="img/yourimg.png" />
<!-- ... -->
Also import images with webpack to include in the build
import 'file?name=[name].[ext]!../img/an_img.png';
This project is licensed under the MIT license, Copyright (c) 2016 Andrew Burnes. For more information see LICENSE.md
.