diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2017-12-28 15:07:01 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2017-12-28 15:07:01 +0200 |
| commit | 04a05206ff197fef47a985a24dfde7ae9c405520 (patch) | |
| tree | d347c13c024d2a8f140e8054a6fc54e9785fca4e /README.md | |
| parent | a1c33b51cef94bdec1484aefa3196f733fff123d (diff) | |
Remake a lot of stuff
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 27 |
1 files changed, 21 insertions, 6 deletions
@@ -1,9 +1,24 @@ -# jan.systems +# Yet another riot.js + webpack project skeleton -Built with `riot.js`. +Built with `riot.js`, `webpack`, `SASS` and ES6 syntax. -## Installation +## Installation with yarn -* Run `yarn install`. -* Install the [caddy](https://caddyserver.com) server. -* `yarn start`
\ No newline at end of file +Run `yarn install` to install all dependencies. + +## Running the demo + +* Run the mock backend with `yarn mock-api` +* Run `yarn start` in another terminal to start the front-end dev server +* Check out http://localhost:8888! + +## Running in production + +* Run `yarn build` to build an optimized web-ready bundle +* Use [Caddy](https://caddyserver.com/) or your favourite static server to server the `public` directory. A template for the `Caddyfile` already exists in the root directory + +## Configuration + +* `dotenv` has been set up to read environment variables from the `.env` file. +* The site template file can be found in `src/index.ejs`. HtmlWebpackPlugin injects the javascript bundle when building. +* Create new components with [create-riot-component](https://www.npmjs.com/package/create-riot-component)
\ No newline at end of file |
