Skip to content

zsalab/cm2020-agil-t1g0-avr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breath Application

Getting started

With docker

docker build . -t cm2020-agil-t1g0-avr/breath-app

docker run -p 8000:8000 -d cm2020-agil-t1g0-avr/breath-app

or

docker-compose up --build (you may remove the existing image/container first: docker container rm -f breath_app)

Visit: [http://127.0.0.1:8000|http://127.0.0.1:8000] in your browser

Without docker

Install project dependencies

npm install

Run in separate terminal to start the app

npm run dev

(Optional) Run in separate terminal for auto reload browser proxy

npm run ui

Open http://localhost:8001 in your browser (if the last command have not opened or you accidentally closed) if you using the auto reload otherwise open http://localhost:8001

Developer info

Templates

This project uses PugJS template engine, the main template placed into views/layaut.pug file and that defines the layout-content block. All other page template should extend that layout (see index.pug first two lines) to fill up the content block defined by the layout template.

Pages

Pages served by ExpessJS, you can add new pages in the server.js as express route (look for // Routes Definitions)

Static content

All static content should be placed to the public folder and referred with relative path to it (e.g. on the filesystem public/style.css but in the HTML template referred as /style.css)

Tech info

Tutorial for nodejs+express+pug: https://auth0.com/blog/create-a-simple-and-stylish-node-express-app/

About

UoL CM2020 Agile Software Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •