The project consists of two node packages:
- Root level ExpressJs app. It exposes API and controllers torrents. When in the production, it will also server React files from the build directory.
- In the
frontend
directory React UI website.
Both frontend
and backend
uses TypeScript language. To run TypeScript in the production, you will need to build it to JavaScript with npm run build
command - it will build frontend
and backend
.
Project uses OpenApi config file to. It's used to automatically validate all API endpoins, generate typescript types and generate frontend API client.
To add or edit API endpoints, edit openapi.yaml
file and then build necessary files with npm run build-openapi
command.
One-click ready-to-code development environments online:
Because there are two packages, you will need to run two development servers. Ir you can use dev
command to run both at the same time:
npm run dev
- starts both backend and frontend development serversnpm run dev-backend
- start dev server on3000
portnpm run dev-frontend
- start dev server on3001
port
The semver level that should be bumped on a release is determined by the commit messages since the last release. In order to be able to decide the correct version and generate the changelog, the content of those commit messages must be parsed. It uses a parser for the Angular commit message style:
<type>: <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
The body or footer can begin with BREAKING CHANGE: followed by a short description to create a major release.
Must be one of the following:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing or correcting existing tests
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
The subject contains succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize first letter
- no dot (.) at the end
Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit closes.
Breaking Changes should start with the word BREAKING CHANGE:
with a space or two newlines. The rest of the commit message is then used for this.