Skip to content

Commit

Permalink
Tweaking some config
Browse files Browse the repository at this point in the history
  • Loading branch information
craigatk committed Sep 30, 2016
1 parent c7e9aea commit 5368c14
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
30 changes: 29 additions & 1 deletion README.md
@@ -1 +1,29 @@
# ratpack-standup
# Ratpack example app with Vue.js + Webpack frontend

## Ratpack backend
The Ratpack backend app uses an in-memory H2 database, so it doesn't require any other database to be installed on your machine.

To run the backend in development mode, run
```
./gradlew run
```

To enable Gradle's continuous mode to watch for server changes and reload them, add ```-t```
```
./gradlew run -t
```

## Vue.js Frontend
The Vue.js frontend app is located in the src/app folder.

To install the node dependencies, run
```
cd src/app
npm install
```

To run the webpack dev server, run
```
cd src/app
npm run dev
```
4 changes: 2 additions & 2 deletions src/app/config/index.js
Expand Up @@ -5,8 +5,8 @@ module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../../ratpack/static/index.html'),
assetsRoot: path.resolve(__dirname, '../../ratpack'),
assetsSubDirectory: 'static',
assetsRoot: path.resolve(__dirname, '../../ratpack/static'),
assetsSubDirectory: 'assets',
assetsPublicPath: '/',
productionSourceMap: true,
// Gzip off by default as many popular static hosts such as
Expand Down
8 changes: 3 additions & 5 deletions src/app/package.json
Expand Up @@ -14,9 +14,6 @@
},
"dependencies": {
"babel-polyfill": "6.13.0",
"babel-runtime": "6.11.6",
"bootstrap-sass": "3.3.7",
"bootswatch": "^3.3.7",
"jquery": "3.1.0",
"vue": "1.0.21",
"whatwg-fetch": "1.0.0"
Expand All @@ -29,8 +26,10 @@
"babel-preset-es2015": "6.13.0",
"babel-preset-stage-2": "6.13.0",
"babel-register": "6.14.0",
"babel-runtime": "6.11.6",
"bootstrap-sass": "3.3.7",
"bootswatch": "3.3.7",
"chai": "3.5.0",
"chromedriver": "2.21.2",
"connect-history-api-fallback": "1.1.0",
"cross-spawn": "2.1.5",
"css-loader": "0.25.0",
Expand Down Expand Up @@ -68,7 +67,6 @@
"phantomjs-prebuilt": "2.1.3",
"resolve-url-loader": "1.6.0",
"sass-loader": "4.0.2",
"selenium-server": "2.53.0",
"shelljs": "0.6.0",
"sinon": "1.17.3",
"sinon-chai": "2.8.0",
Expand Down
1 change: 1 addition & 0 deletions src/ratpack/.gitignore
@@ -0,0 +1 @@
static/assets

0 comments on commit 5368c14

Please sign in to comment.