Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

jordond/powerhour-site

Repository files navigation

Power Hour Web

Build Status Build Status Build Status

Website front end for my Power Hour Android applicaion, the source for which can be found here.

Get it on Google Play

Powered by my ES6 Angular seed

Site is live @ powerhourapp.ca

Install

  1. Download and extract latest compiled files from here.
  2. Change into directory and run NODE_ENV=production npm install.
  3. Start server by running npm start.
  • or NODE_ENV=production PORT=8080 node ./bin/server.js
  1. Navigate to http://localhost:8080

From source

  1. Clone the repo git clone http://github.com/jordond/powerhour-site
  2. Run npm install
  3. Run npm run build
  4. Run npm start
  5. Navigate to http://localhost:8080

Docker

  1. Clone the repo: git clone http://github.com/jordond/powerhour-site
  2. Build docker image: docker build -t jordond/powerhour docker/
  3. 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 the docker run command to enable running from the develop branch.

Features

  • Written with the following technologies:
    • Webpack
    • ES6
    • Angular
    • Node
    • Love
  • Run simple server to serve angular files.

To Do

  • TESTS
  • Build front-end.
  • Dockerize website for easier managment.
  • Add to my Jenkins instance.

Development

  1. Clone the repo git clone http://github.com/jordond/powerhour-site
  2. Run npm install
  3. Run npm run hook-install to setup the precommit hook.
  4. Then run npm run dev or npm run dev-prod for testing production mode.
  5. Edit away, webpack will detect changes and rebuild, and then BrowserSync will reload.

NPM Scripts

  • npm run lint - Run eslint on all javascript files in src/.
  • npm run start - Start the server by running bin/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 the package.json.
  • npm run hook-remove - Remove the precommit.

License

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.

About

A website for Power Hour Android app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published