diff --git a/.eslintignore b/.eslintignore index 0764943..7fd7758 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ build/*.js -config/*.js \ No newline at end of file +config/*.js +* \ No newline at end of file diff --git a/.gitignore b/.gitignore index be86a2b..fcddb7c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ dist/ npm-debug.log selenium-debug.log test/unit/coverage -test/e2e/reports +test/e2e/reports \ No newline at end of file diff --git a/README.md b/README.md index 032955c..b6e02a4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,26 @@ -# incentify +# Incentify > Motivation app through financial consequences +By tracking metric based achievement sites (Fitbit/Duolingo), we can interface with their API and let users set a goal (5 miles per week) and a financial incentive ($10). If they fail to meet that weekly goal, they get charged through the Stripe API. + +## Technologies used +**NERV Stack** +Back End: Node/Express +Database: RethinkDB +Front End: Vue.js + +**APIs** +Stripe +Team Treehouse + +**CSS** +Bulma.io +Animate.css + ## Build Setup -``` bash +``` # install dependencies npm install @@ -13,15 +29,4 @@ npm run dev # build for production with minification npm run build - -# run unit tests -npm run unit - -# run e2e tests -npm run e2e - -# run all tests -npm test ``` - -For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 78552fd..60f58cd 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -5,7 +5,7 @@ var projectRoot = path.resolve(__dirname, '../') module.exports = { entry: { - app: './src/main.js' + app: ['./src/main.js'] }, output: { path: config.build.assetsRoot, diff --git a/config/dev.env.js b/config/dev.env.js index efead7c..a499fad 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -2,5 +2,7 @@ var merge = require('webpack-merge') var prodEnv = require('./prod.env') module.exports = merge(prodEnv, { - NODE_ENV: '"development"' + DEBUG_MODE: true, + NODE_ENV: '"development"', + API_URL: '"http://localhost:3000"' }) diff --git a/config/index.js b/config/index.js index 1f608ad..83a084b 100644 --- a/config/index.js +++ b/config/index.js @@ -7,7 +7,8 @@ module.exports = { index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', - assetsPublicPath: '/', + // remove the dot below if you want it for webroot vs cordova + assetsPublicPath: './', productionSourceMap: true, // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you. diff --git a/config/prod.env.js b/config/prod.env.js index 773d263..6576b0b 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,3 +1,5 @@ module.exports = { - NODE_ENV: '"production"' + DEBUG_MODE: false, + NODE_ENV: '"production"', + API_URL: '"https://incentifyapi.herokuapp.com"' } diff --git a/index.html b/index.html index fa76497..b893a87 100644 --- a/index.html +++ b/index.html @@ -3,9 +3,11 @@