Skip to content

syleLim/loopbackServerTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors