@@ -31,6 +31,7 @@ frameworks:
31
31
- [ Fastify] ( https://docs.apitally.io/frameworks/fastify )
32
32
- [ Koa] ( https://docs.apitally.io/frameworks/koa )
33
33
- [ Hono] ( https://docs.apitally.io/frameworks/hono )
34
+ - [ AdonisJS] ( https://docs.apitally.io/frameworks/adonisjs )
34
35
35
36
Learn more about Apitally on our 🌎 [ website] ( https://apitally.io ) or check out
36
37
the 📚 [ documentation] ( https://docs.apitally.io ) .
@@ -183,6 +184,46 @@ useApitally(app, {
183
184
});
184
185
```
185
186
187
+ ### AdonisJS
188
+
189
+ This is an example of how to use the Apitally middleware with a AdonisJS application.
190
+ For further instructions, see our
191
+ [ setup guide for AdonisJS] ( https://docs.apitally.io/frameworks/adonisjs ) .
192
+
193
+ Create a configuration file at ` config/apitally.ts ` :
194
+
195
+ ``` javascript
196
+ import { defineConfig } from " apitally/adonisjs" ;
197
+
198
+ const apitallyConfig = defineConfig ({
199
+ clientId: " your-client-id" ,
200
+ env: " dev" , // or "prod" etc.
201
+ });
202
+
203
+ export default apitallyConfig ;
204
+ ```
205
+
206
+ Register the Apitally provider in your ` adonisrc.ts ` file:
207
+
208
+ ``` javascript
209
+ export default defineConfig ({
210
+ // ... existing code ...
211
+ providers: [
212
+ // ... existing providers ...
213
+ () => import (" apitally/adonisjs/provider" ),
214
+ ],
215
+ });
216
+ ```
217
+
218
+ Register the Apitally middleware in your ` start/kernel.ts ` file:
219
+
220
+ ``` javascript
221
+ router .use ([
222
+ () => import (" apitally/adonisjs/middleware" ),
223
+ // ... other middleware ...
224
+ ]);
225
+ ```
226
+
186
227
## Getting help
187
228
188
229
If you need help please [ create a new discussion] ( https://github.com/orgs/apitally/discussions/categories/q-a ) on GitHub
0 commit comments