0.0.17 • Published 5 years ago

@tenp/core v0.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Based on the express implementation, using typescript enhancements, creating services via pm2

👉👉👉API Docs


Framework progress

Installed via npm

$ npm install @tenp/cli -g
$ tenp init hellworld
$ cd hellworld
$ tenp dev

Create service

import { Application } from 'express'
import { Start ,Router, Config, Get, Request, Response } from '@tenp/core';
@Router() 
class HelloWord{

	private msg: string = 'Hello, world'

	@config({ url: '/hello', name: 'hello', type: 'get' })
	private hello(req: Request, res: Response): void {
		res.end(`<h1>${this.msg}</h1>`)
	}
	
	@Get('/world')
	private world(req: Request, res: Response): void {
		res.end(`<h1>${this.msg}</h1>`)
	}

}
Start({
	port: 8080,
	router: [ HelloWord ],
}).then((app: Application) => {
	console.log('success')
})
0.0.17

5 years ago

0.0.16

5 years ago

0.1.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago