Package Exports
- @loopback/example-hello-world
- @loopback/example-hello-world/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@loopback/example-hello-world) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@loopback/example-hello-world
A simple hello-world application using LoopBack 4!
Summary
This project shows how to write the simplest LoopBack 4 application possible. Check out src/application.ts to learn how we configured our application to always respond with "Hello World!".
Prerequisites
Before we can begin, you'll need to make sure you have some things installed:
- Node.js at v10 or greater
Additionally, this tutorial assumes that you are comfortable with certain technologies, languages and concepts.
Installation
- Install the new loopback CLI toolkit.
npm i -g @loopback/cli
- Download the "hello-world" application.
lb4 example hello-world
- Switch to the directory.
cd loopback4-example-hello-world
Use
Start the app:
npm start
The application will start on port 3000
. Use your favourite browser or REST
client to access any path with a GET request, and watch it return
Hello world!
.
Contributions
Tests
Run npm test
from the root folder.
Contributors
See all contributors.
License
MIT