| public | ||
| src | ||
| srs-software-requirements-specifications | ||
| .editorconfig | ||
| .gitignore | ||
| .prettierrc | ||
| angular.json | ||
| build.ps1 | ||
| docker-compose.yaml | ||
| dockerfile | ||
| LICENSE | ||
| nginx.conf.template | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.spec.json | ||
Tea Planner
Online Demo
This project is available online as a demonstration, or as a ready to use application. Visit the following URL: https://teaplanner.mcodev.net
Requirements to build:
- Node Packet Manager (NPM)
- Angular
Building the Angular Project
ng build --configuration production
After building, the artifact will be in the /dist folder.
Setup as a Docker Container
First build the Angular artifact, then to build the docker image, you need three files:
- dockerfile
- docker-compose.yaml
- nginx.conf.template
Run the following command to built the docker image:
docker build -t tea-planner:main . --no-cache
Modify the docker-compose.yaml as you see fit, change the environment variable ENV_HOSTNAME to your FQN domain (e.g. teaplanner.example.com)
version: '3.8'
services:
tea_planner_webapp:
image: tea-planner:main
ports:
- "8080:80" # Change the left hand side of the colon to the desired port number to expose on your host
restart: unless-stopped
Then create and run the container:
docker-compose up
The application will be available on the port you have defined in docker compose (by default it's 8080). If you're running this application on your local computer, open a webpage to http://localhost:8080 and you should see the Tea Planner. You can of course expose the application to the internet, but that is outside the scope of this documentation.
License
MIT License, see LICENSE.