Skip to content

mpatsute/loopback-next

 
 

Repository files navigation

loopback-next

Gitter

LoopBack makes it easy to build modern applications that require complex integrations.

  • Fast, small, powerful, extensible core
  • Generate real APIs with a single command
  • Define your data and endpoints with OpenAPI
  • No maintenance of generated code

Installation

Make sure you have the following installed:

Then:

npm i -S loopback-next (or wherever we publish)
cd node_modules/loopback-next
npm i -g lerna
lerna bootstrap
cd ../..
# proceed to creating index.ts

Example

A basic example of a controller:

export class UserController {
  public async getUserByName(username: string): Promise<UserResponse> {
    const users = new UserRepository();
    const user = await users.findOne({where: {username: username}});
    if (!user) {
      throw createHttpError.NotFound(`User ${username} not found.`);
    }
    return new UserResponse(user);
  }
}

See loopback-next-example for more

Documentation

Team

Ritchie Martori Raymond Feng Miroslav Bajtos Rand McKinney Simon Ho

See all contributors

Contributing

License

MIT

About

LoopBack makes it easy to build modern applications that require complex integrations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.9%
  • Shell 0.1%