[](https://gitter.im/strongloop/loopback) [](https://travis-ci.org/strongloop/loopback-next)
npm install loopback-next 
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
Make sure you have the following installed:
- Node.js >= 7.0.0
- TypeScript >= 2.0.0 npm i -g typescript
- TypeScript Node >= 3.0.0 npm i -g ts-node
Then in your Node.js project root, run:
``shell`
npm install -S @loopback/core
> Make sure you set "target": "es6" in your compiler options in yourtsconfig.json
> if you're using a TypeScript project. See the installation
> wiki for
> detailed information.
A basic controller:
`tsUser ${username} not found.
export class UserController {
async getUserByName(username: string): Promise
const users = new UserRepository();
const user = await users.findOne({where: {username: username}});
if (!user) {
throw createHttpError.NotFound();``
}
return new UserResponse(user);
}
}
See loopback-next-example for more.
- API documentation
- FAQ
- LoopBack 3 vs LoopBack 4
- Official documentation
- Tutorials and examples
Ritchie Martori|Raymond Feng|Miroslav Bajtos|Rand McKinney|Simon Ho
:-:|:-:|:-:|:-:|:-:|
|
|
|
See all contributors.
MIT