LoopBack-next getting started tutorial
From @bajtos on July 18, 2017 17:24
From @superkhau on March 20, 2017 22:37
Deadline: ???
As a LoopBack user I want to try out a tutorial So that I can learn the basics of LoopBack-next
Story map
| Go to loopback.io/getting-started | Follow page-by-page tutorial on loopback.io | End the tutorial with next steps |
| Go to loopback-next/wiki |
Copied from original issue: strongloop-internal/scrum-asteroid#27
Copied from original issue: strongloop-internal/scrum-apex#281
From @bajtos on July 26, 2017 12:15
Acceptance Criteria
- Setup an empty LoopBack.next project (downloading an empty "sandbox" repo from GitHub is an acceptable solution to me)
- Define my first REST API endpoint (via a Controller)
- Define a Model
- Persist my new Model in a database (via a Repository and a connector?)
- Implement my controller method from step 2 by calling a model/repository methods.
- Start the app, open SwaggerUI to visualize my new API and make few test requests to play with it.
- Use tags or branches to show each step of the tutorial
- Reference: https://github.com/angular/angular-phonecat
The LoopBack Next wiki is the entry point to LB Next documentation: https://github.com/strongloop/loopback-next/wiki/
There is a section called Take the tutorial : https://github.com/strongloop/loopback-next/wiki/Take-the-tutorial
As you see there, the tutorial *is` the hello-world: https://github.com/strongloop/loopback-next-hello-world
There are two parts in hello-world: coding and documentation.
This task is the coding part of the tutorial. The documentation part is https://github.com/strongloop/loopback-next/issues/499
As of Aug. 10, 2017, significant portion of the hello-world coding is done as the following branch: https://github.com/strongloop/loopback-next-hello-world/tree/add-authentication-component
In the branch: these three items aredone except for an issue in the interaction with Authentication component.
- [x] controllers: OpenAPI v2 compatible spec, spec validation test
- [x] component : use Authentication component
- [x] sequence : custom sequence with the Authentication component
The remaining items are:
- [x] Repository/Model : integrate the example implementation from loopback-next/packages/repository/examples: https://github.com/strongloop/loopback-next/tree/master/packages/repository/examples
- [x] Add tests for Repository/Model
- [x] the swagger UI item in the acceptance criteria: Start the app, open SwaggerUI to visualize my new API and make few test requests to play with it.
@b-admike , what's left to be done here? Would it affect the write-up of https://github.com/strongloop/loopback-next/issues/499?
At the moment, I have all the pieces needed for this story, but I'd have to refactor hello-world app to use our new rest package.