@aponiajs/platform-elysia 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @aponiajs/platform-elysia
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@aponiajs/platform-elysia)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add @aponiajs/common @aponiajs/platform-elysia elysia
|
|
9
|
+
```
|
|
10
|
+
|
|
3
11
|
The first Elysia platform slice for Aponia:
|
|
4
12
|
|
|
5
13
|
- `AponiaFactory.create(AppModule)` application bootstrap;
|
|
@@ -21,3 +29,17 @@ composing existing Elysia plugins without rewriting them.
|
|
|
21
29
|
|
|
22
30
|
See `docs/logging.md` for logger configuration, JSON output, level filtering,
|
|
23
31
|
and custom logger integration.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import { Module } from "@aponiajs/common";
|
|
35
|
+
import { AponiaFactory } from "@aponiajs/platform-elysia";
|
|
36
|
+
|
|
37
|
+
@Module({})
|
|
38
|
+
class AppModule {}
|
|
39
|
+
|
|
40
|
+
const application = await AponiaFactory.create(AppModule);
|
|
41
|
+
await application.listen(3000);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[npm package](https://www.npmjs.com/package/@aponiajs/platform-elysia) ·
|
|
45
|
+
[complete package catalog](../../docs/packages.md)
|
package/package.json
CHANGED