Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craigfoote/ca.footeware.ng.recipes
An Angular app to access the Recipe REST service.
https://github.com/craigfoote/ca.footeware.ng.recipes
Last synced: 7 days ago
JSON representation
An Angular app to access the Recipe REST service.
- Host: GitHub
- URL: https://github.com/craigfoote/ca.footeware.ng.recipes
- Owner: CraigFoote
- Created: 2022-12-11T15:19:01.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T14:22:48.000Z (2 months ago)
- Last Synced: 2024-09-12T04:57:20.644Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 6.21 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ng.recipes
code {
background-color: transparent;
color: #ff9154
}## Preparation
1. ng update
1. `docker network create recipes-network`
1. `sudo mkdir -p /opt/mongodb/data`
1. `sudo chmod 777 /opt/mongodb/data`
1. `docker run -d --name mongodb -p 27017:27017 --network recipes-network -v /opt/mongodb/data:/data/db mongo:latest`
1. populate mongodb using Mongo Compass
1. `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`
1. `curl -v -u craig -i 'http://localhost:9000/recipes?pageNumber=0&pageSize=10'`## Development
1. change app version number in `package.json`
1. `ng build`
1. `ng serve`
1.
1. `docker build -t ng.recipes .`
1. `docker run -d --name ng.recipes -p 9001:9001 --network recipes-network -t ng.recipes`
1.## Deployment
1. commit changes to git and create tag [version]
1. `docker tag ng.recipes craigfoote/ng.recipes:[version]`
1. `docker tag ng.recipes craigfoote/ng.recipes:latest`
1. `docker push craigfoote/ng.recipes:[version]`
1. `docker push craigfoote/ng.recipes:latest`