Skip to content

Commit fdc2622

Browse files
chore: add readme
1 parent cf48c23 commit fdc2622

1 file changed

Lines changed: 33 additions & 30 deletions

File tree

README.md

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,62 @@
1-
# QtiEditorAngular
21

3-
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.2.6.
2+
# QTI Editor Angular Extension
43

5-
## Development server
4+
This project is an example Angular integration of the [qti-editor](https://github.com/Citolab/qti-editor) ecosystem. It demonstrates how to integrate QTI Editor’s modular, ProseMirror-based authoring environment into an Angular application, using the recommended public packages and UI registry approach.
65

7-
To start a local development server, run:
6+
**Live Demo:** [https://citolab.github.io/qti-editor-angular/](https://citolab.github.io/qti-editor-angular/)
87

9-
```bash
10-
ng serve
11-
```
8+
---
129

13-
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
10+
## About
1411

15-
## Code scaffolding
12+
This application is designed to showcase and extend the capabilities of the main [qti-editor](https://github.com/Citolab/qti-editor) repository. It provides a reference implementation for embedding QTI-compliant authoring tools in Angular apps, following the best practices outlined in the [qti-editor documentation](https://qti-editor.citolab.nl/docs).
1613

17-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
14+
The editor is built on [ProseMirror](https://prosemirror.net/) and leverages QTI-specific schema nodes, commands, and web components. This ensures that authored content is always valid QTI and that only supported interactions and structures are allowed.
1815

19-
```bash
20-
ng generate component component-name
21-
```
16+
## Integration Approach
2217

23-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
18+
- Install the required `@qti-editor` interaction and core packages from npm.
19+
- Use [ProseKit](https://prosekit.dev) for ready-made UI components, or copy example Lit UI components from the registry.
20+
- Maintain a small local ProseKit helper layer for editor assembly and event wiring.
21+
- The intended public model is: `prosekit` + `@qti-editor/interaction-*` + `@qti-editor/core` + copied registry UI.
2422

25-
```bash
26-
ng generate --help
27-
```
23+
For more details, see the [Angular integration guide](https://qti-editor.citolab.nl/docs/frameworks/angular/).
2824

29-
## Building
25+
## Development
3026

31-
To build the project run:
27+
To start a local development server:
3228

3329
```bash
34-
ng build
30+
ng serve
3531
```
3632

37-
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
33+
Visit `http://localhost:4200/` in your browser. The app will reload automatically on code changes.
3834

39-
## Running unit tests
35+
## Building
4036

41-
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
37+
To build the project for production:
4238

4339
```bash
44-
ng test
40+
ng build --configuration production --base-href /qti-editor-angular/
4541
```
4642

47-
## Running end-to-end tests
43+
The build output will be in the `dist/` directory. This project is automatically deployed to GitHub Pages on every push to `main`.
4844

49-
For end-to-end (e2e) testing, run:
45+
## Testing
46+
47+
To run unit tests:
5048

5149
```bash
52-
ng e2e
50+
ng test
5351
```
5452

55-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
53+
## Resources
54+
55+
- [QTI Editor Documentation](https://citolab.github.io/qti-editor/)
56+
- [QTI Editor Angular Integration Guide](https://citolab.github.io/qti-editor/docs/frameworks/angular/)
57+
- [Main qti-editor repository](https://github.com/Citolab/qti-editor)
58+
- [ProseKit](https://prosekit.dev)
5659

57-
## Additional Resources
60+
---
5861

59-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
62+
For questions or contributions, please see the main [qti-editor](https://github.com/Citolab/qti-editor) repository.

0 commit comments

Comments
 (0)