This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nodejs-loopback: upgrade LoopBack stack to latest releases (#863)
* nodejs-loopback: upgrade LoopBack stack to latest releases Signed-off-by: Raymond Feng <[email protected]> * feat: use node as the non-root user for the container Signed-off-by: Raymond Feng <[email protected]>
- Loading branch information
1 parent
8d8aebc
commit 3f2cf38
Showing
18 changed files
with
4,122 additions
and
3,594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
3,705 changes: 1,971 additions & 1,734 deletions
3,705
incubator/nodejs-loopback/image/project/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
dist/ | ||
coverage/ | ||
.eslintrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,79 @@ | ||
# nodejs-loopback-scaffold | ||
|
||
This project is originally generated using `lb4` command from `@loopback/cli`. See [Getting started with LoopBack 4](https://loopback.io/doc/en/lb4/Getting-started.html) for more details. | ||
This application is generated using [LoopBack 4 CLI](https://loopback.io/doc/en/lb4/Command-line-interface.html) with the | ||
[initial project layout](https://loopback.io/doc/en/lb4/Loopback-application-layout.html). | ||
|
||
It has been slightly tailored as a template for `appsody`. | ||
## Install dependencies | ||
|
||
[![LoopBack](https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)[email protected])](http://loopback.io/) | ||
By default, dependencies were installed when this application was generated. | ||
Whenever dependencies in `package.json` are changed, run the following command: | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
To only install resolved dependencies in `package-lock.json`: | ||
|
||
```sh | ||
npm ci | ||
``` | ||
|
||
## Run the application | ||
|
||
```sh | ||
npm start | ||
``` | ||
|
||
You can also run `node .` to skip the build step. | ||
|
||
Open http://127.0.0.1:3000 in your browser. | ||
|
||
## Rebuild the project | ||
|
||
To incrementally build the project: | ||
|
||
```sh | ||
npm run build | ||
``` | ||
|
||
To force a full build by cleaning up cached artifacts: | ||
|
||
```sh | ||
npm run clean | ||
npm run build | ||
``` | ||
|
||
## Fix code style and formatting issues | ||
|
||
If `eslint` and `prettier` are enabled for this project, you can use the | ||
following commands to check code style and formatting issues. | ||
|
||
```sh | ||
npm run lint | ||
``` | ||
|
||
To automatically fix such issues: | ||
|
||
```sh | ||
npm run lint:fix | ||
``` | ||
|
||
## Other useful commands | ||
|
||
- `npm run migrate`: Migrate database schemas for models | ||
- `npm run openapi-spec`: Generate OpenAPI spec into a file | ||
- `npm run docker:build`: Build a Docker image for this application | ||
- `npm run docker:run`: Run this application inside a Docker container | ||
|
||
## Tests | ||
|
||
```sh | ||
npm test | ||
``` | ||
|
||
## What's next | ||
|
||
Please check out [LoopBack 4 documentation](https://loopback.io/doc/en/lb4/) to | ||
understand how you can continue to add features to this application. | ||
|
||
[![LoopBack](<https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)[email protected]>)](http://loopback.io/) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.