Skip to content

CraigFoote/ca.footeware.ng.recipes

Repository files navigation

ng.recipes

<style> code { background-color: transparent; color: #ff9154; font-size: 125%; } </style>

Preparation

  1. ng update
  2. docker network create recipes-network
  3. sudo mkdir -p /opt/mongodb/data
  4. sudo chmod 777 /opt/mongodb/data
  5. docker run -d --name mongodb -p 27017:27017 --network recipes-network -v /opt/mongodb/data:/data/db mongo:latest
  6. populate mongodb using Mongo Compass
  7. docker run -d --name rest.recipes -p 9000:9000 --network recipes-network -v /opt/rest.recipes/logs:/opt/rest.recipes/logs -t craigfoote/rest.recipes:latest
  8. curl -v -u craig -i 'http://localhost:9000/recipes?pageNumber=0&pageSize=10'

Development

  1. change app version number in package.json
  2. ng build
  3. ng serve
  4. http://localhost:4200
  5. docker build -t ng.recipes .
  6. docker run -d --name ng.recipes -p 9001:9001 --network recipes-network -t ng.recipes
  7. http://localhost:9001

Deployment

  1. commit changes to git and create tag [version]
  2. docker tag ng.recipes craigfoote/ng.recipes:[version]
  3. docker tag ng.recipes craigfoote/ng.recipes:latest
  4. docker push craigfoote/ng.recipes:[version]
  5. docker push craigfoote/ng.recipes:latest

About

An Angular app to access the Recipe REST service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published