1.1.5 • Published 7 years ago

coorpacademy-www-static v1.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

coorpacademy-www-static Build Status

Static coorpacademy web site


You can launch the application in 2 manner :

  • standalone solution using your local node server
  • fully dockerized stack with a mapped workspace volume

Old fashion

  • npm install
  • npm start
  • visit http://localhost:3500

Docker

  • Run make dev. It will run a local dev stack with a volume mapped to your workspace.
  • Open the application on https://localhost
  • follow logs make logs

Usage

  • make build build local docker images from "docker-compose.yml"
  • make build-no-cache runs make build with --no-cache flag
  • make start starts a fast dev stack without reinstall of npm_modules and without workspace volume, usefull for a fast application's test.
  • make stop kills all containers listed from docker-compose.yml
  • make remove remove all killed/stopped containers from docker-compose.yml
  • make restart runs the 3 commands above: stop remove start
  • make gen-conf generate docker-cloud.yml for staging and production environment
  • make status shows stats of the current compose stack
  • make logs follow logs from all compose containers, it is possible to watch a specific image, for example make logs web
  • make ssh <name> open an interactive shell in a container. example make ssh web
  • make clean remove local node_modules
  • make test runs docker-compose.test.yml and executes tests

how to add a component

first add the factory to your bundle: /app/components.js

createStarRating: factories.createStarRating

then your dust helper will be created at npm start, just call it with the required properties in any dust file: (helper names are param-case)

{@star-rating rating=4 total=7 /}