Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

License

Notifications You must be signed in to change notification settings

programmingtips/loopback-next

Open more actions menu
 
 

Repository files navigation

loopback-next

Gitter Travis Build Status AppVeyor Build status Coverage Status

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

Status: ALPHA

LoopBack Next is a work in progress, the public API is frequently changed in backwards-incompatible ways. See Upcoming-Releases on wiki for more details.

Installation

Make sure you have the following installed:

Then in your Node.js project root, run:

npm install -S @loopback/core

Make sure you set "target": "es6" in your compiler options in your tsconfig.json if you're using a TypeScript project. See Installation for detailed information.

Example

A basic controller:

export class UserController {
  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

Packages

No packages published

Languages

  • TypeScript 98.2%
  • JavaScript 1.5%
  • Shell 0.3%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.