This is an application showcasing the beauty of TypeScript and how you can use it build scalable enterprise systems.
Contains integration for Docker Compose, Gitlab CI and Github Actions.
Also has a docker-compose
implementation that expects the provision of the following variables
UI_PORT
: the port number you wish to access the frontend app.API_PORT
: the port you wish to access the backend app.API_ENV_FILE
: location of the environment file to use for the backend server, it must be in the relative to./.docker/
Gitlab can help you build and publish docker images to a docker repository. To use this, ensure you have the following variables declared on your Gitlab Repo
CI_USERNAME
: your gitlab usernameCI_ACCESS_TOKEN
: this is the access token to log into gitlab cli if you are using 2FA.
Feel free to check ./gitlab-ci.yml
and their documentations for more info.
Github provides a robust CI tool that you can use, currently, this is being used to build and deploy images to the gitlab docker repository.
Ensure that all the underlisted variables are provided under the secret
section of your github repository
DOCKER_REGISTRY_URL
: url of the docker registry to publish toDOCKER_USERNAME
: docker registry usernameDOCKER_PASSWORD
: docker registry passwordREPO_NAME
: repository name (nestpoc
in this case)FRONTEND_IMAGE
: name to give to front-end imageBACKEND_IMAGE
: name to give to backend image
Brought to you by 'Barak Imam with 💝 from Lagos, Nigeria.