Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoopBack server test

npm -g install @loopback/cli
//if you need, sudo or version3(npm install -g loopback-cli)

loopback 4.0 start

lb4 app
? Project name: loopback-test
? Project description: loopback testing for my api server
? Project root directory: loopback-test
? Application class name: App
? Select features to enable in the project Enable eslint, Enable, prettier, Enable mocha, Enable loopbackBuild, Enable vscode, Enable docker, Enable repositories, Enable services

Make controller It is one of API

lb4 controller

or just typing in ./src/controller

import { get } from '@loopback/rest';

export class TestController {
  @get("/test")
  hello() : string {
    return "test"
  }
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages