Skip to content

Commit

Permalink
EW-998-doc added documentations for sync console
Browse files Browse the repository at this point in the history
  • Loading branch information
Fshmit committed Sep 24, 2024
1 parent 5d0f6d5 commit 012379e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ There is also some old documentation in the server code /apps/server/doc/*.md.

Note that not all the .md file here are up to date.

## NestJS Console Application

### Sync console
> Find the here [Documentation](./apps/server/src/infra/sync/console/README.md)

## Feathers application

Expand Down
22 changes: 22 additions & 0 deletions apps/server/src/infra/sync/console/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Sync console
This is a console application that allows you to start the synchronization process for different sources.

## Usage
To start the synchronization process, run the following command:
```bash
npm run nest:start:console sync run <target>
```

Where `<target>` is the name of the system you want to start the synchronization for. The currently available systems are:
- `tsp` - Synchronize Thüringer schulportal.

If the target is not provided, the synchronization will not start and the available targets will be displayed in an error message.
```bash
{
message: 'Either synchronization is not activated or the target entered is invalid',
data: { enteredTarget: 'tsp', availableTargets: { TSP: 'tsp' }}
}
```
## TSP synchronization
The TSP synchronization is controlled with a feature flag `FEATURE_TSP_SYNC_ENABLED`. This is now set to `false`.

0 comments on commit 012379e

Please sign in to comment.