Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digipolitan/lagiacrus
https://github.com/digipolitan/lagiacrus
Last synced: about 23 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/digipolitan/lagiacrus
- Owner: Digipolitan
- License: bsd-3-clause
- Created: 2019-06-23T10:47:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T23:46:14.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T13:36:10.959Z (9 months ago)
- Language: TypeScript
- Size: 915 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lagiacrus
[![npm version](https://badge.fury.io/js/lagiacrus.svg)](https://badge.fury.io/js/lagiacrus)
Koa wrapper using decorators
## Installation
`npm install lagiacrus`
## Usage
## Example
hello.controller.ts
```typescript
@Controller({
path: '/hello'
})
export class HelloController {@Get('/')
displayWorld(): string {
return 'world';
}
}
```main.ts
```typescript
async function main(): Promise {
const server = new Server();
server.mount(HelloController);
return await server.start(3000);
}
main().then(() => console.log('Listening...')).catch(console.error);
```