Loopback Block - @gigster/block-loopback
Overview
Add the following yaml to your gig.yaml
to create a new block called api
using block-loopback
. Make sure to replace VERSION
with the specific version of the module. The latest version can be found here.
...
blocks:
- name: api
location: 'npm:@gigster/block-loopback@VERSION'
The block-loopback
generates a barebones Loopback 3.x API. We provide a base eslint config which makes the code standardized.
Usage
After generating your project, you can cd
into the new api
directory. To get your app up and running, simply run:
yarn install
yarn start
and you should see:
Web server listening at: http://localhost:3000
Browse your REST API at http://localhost:3000/explorer
Navigate to http://localhost:3000/explorer to view the Loopback Explorer.