https://github.com/jimizai/type-foxx
a simple http server framework for Node.js
https://github.com/jimizai/type-foxx
injectable koa monorepo nodejs nx typescript
Last synced: 6 months ago
JSON representation
a simple http server framework for Node.js
- Host: GitHub
- URL: https://github.com/jimizai/type-foxx
- Owner: jimizai
- Created: 2020-07-11T05:31:23.000Z (almost 6 years ago)
- Default Branch: 2.x
- Last Pushed: 2022-11-11T22:50:51.000Z (over 3 years ago)
- Last Synced: 2025-03-13T02:36:35.130Z (over 1 year ago)
- Topics: injectable, koa, monorepo, nodejs, nx, typescript
- Language: TypeScript
- Homepage:
- Size: 2.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Quick start
```shell
$ npm install -g @jimizai/foxx-cli
$ foxx init
```
### Hello foxx
```typescript
// main.ts
import { boostrap } from '@jimizai/core';
import { KoaFoxxDriver } from '@jimizai/driver-koa';
import './app/home.controller';
boostrap({
Driver: KoaFoxxDriver,
srcDirs: [],
});
// app/home.controller.ts
import { Get, Controller } from '@jimizai/decorators';
@Controller()
export class HomeController {
@Get()
home() {
return 'hello foxx';
}
}
```
### Quick started
- [simple](https://github.com/jimizai/type-foxx/tree/2.x/apps/simple) - A simple example to quick start use foxx