Skip to content

Commit

Permalink
EW-998-doc added documentations for sync console (#5254)
Browse files Browse the repository at this point in the history
* EW-998-doc added documentations for sync console
  • Loading branch information
Fshmit authored Sep 26, 2024
1 parent 7d3119b commit dac1b91
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 Applications

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

## 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 dac1b91

Please sign in to comment.