Website front end for my Power Hour Android applicaion, the source for which can be found here.
Powered by my ES6 Angular seed
Site is live @ powerhourapp.ca
- Download and extract latest compiled files from here.
- Change into directory and run
NODE_ENV=production npm install
. - Start server by running
npm start
.
- or
NODE_ENV=production PORT=8080 node ./bin/server.js
- Navigate to
http://localhost:8080
- Clone the repo
git clone http://github.com/jordond/powerhour-site
- Run
npm install
- Run
npm run build
- Run
npm start
- Navigate to
http://localhost:8080
- Clone the repo:
git clone http://github.com/jordond/powerhour-site
- Build docker image:
docker build -t jordond/powerhour docker/
- Create a container:
docker run -d \
--name=powerhour \
--restart=always \
-p <port>:8080 \
jordond/powerhour
###Notes
- I run this in a docker container, then have my nginx server reverse proxy to this.
- Add
-e staging=true
to thedocker run
command to enable running from thedevelop
branch.
- Written with the following technologies:
- Webpack
- ES6
- Angular
- Node
- Love
- Run simple server to serve angular files.
- TESTS
Build front-end.Dockerize website for easier managment.Add to my Jenkins instance.
- Clone the repo
git clone http://github.com/jordond/powerhour-site
- Run
npm install
- Run
npm run hook-install
to setup the precommit hook. - Then run
npm run dev
ornpm run dev-prod
for testing production mode. - Edit away, webpack will detect changes and rebuild, and then BrowserSync will reload.
npm run lint
- Run eslint on all javascript files insrc/
.npm run start
- Start the server by runningbin/server.js
.npm run start-dev
- Start server in development mode.npm run build
- Build all of the front-end javascript with webpack.npm run build-dev
- Build, and watch for changes.npm run dev
- Run server in development, and build & watch front end javascript.npm run hook-install
- Install a precommit hook that will run the tasks in thepackage.json
.npm run hook-remove
- Remove the precommit.
The MIT License (MIT)
Copyright (c) 2015 Jordon de Hoog
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.