@coweb/newsgroup-endpoint
v0.0.3
Published
Just testing what can be done
Downloads
5
Readme
COW: <component> / <subservice>
In order to create a new subservice:
- Create project in GitLab
- Pull project to your local development branch
- Copy and paste this project (except
.git
directory) to the newly created project - If you are creating an
- application: overwrite content of
.gitlab-ci.yml
withapp.gitlab-ci.yml
- front-end server: apply application steps and overwrite content of
Dockerfile
withhttpd-Dockerfile
(also you can change the public directory given in it) and change entrypoint in cow.yml tohttpd-foreground
. You may delete anything related to typescript backend. Update the scripts to match your requirements. - library: delete app related entities from package.json (
@coweb/cow
,express
, etc...)
- application: overwrite content of
- Rename every
project-template
you see in the files to eithercomponent-subservice
or indicate otherwise. (In some places there are also onlyproject
ortemplate
, rename those accordingly to your component and subservice names, too) git commit -am "feat: initial commit"
git push
- Open project in GitLab and go to Settings -> CI/CD
- Under General Pipelines change Test Coverage Parsing to :
All files\s*\|\s*(\d+).*
- Under Runners activate COW Runner for your project
- Under Variables add Protected variables of:
GL_TOKEN : <copy from this project's settings> NPM_TOKEN : <copy from this project's settings> CI_DOCKER_PASSWORD: <copy from this project's settings> (not necessary for a library) IMPORTANT: Do not commit these values to Git - TODO: We actually have to move this to runner's Kubernetes secrets
- Under General Pipelines change Test Coverage Parsing to :
- Delete these steps and write something meaningful that explains the purpose of the subservice.
- Start coding!