-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[CLI] Improve readme of a new project #4981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,52 @@ | ||
| # <%= project.name %> | ||
|
|
||
| [-@2x.png)](http://loopback.io/) | ||
| <% if (project.description) { -%> | ||
| > <%= project.description %> | ||
| <% } -%> | ||
|
|
||
| This project was generated with [Loopback CLI](https://github.com/strongloop/loopback-next/tree/master/packages/cli) version <%= cliVersion %>. | ||
|
|
||
| ## First Steps | ||
|
|
||
| ### Starting the application | ||
|
|
||
| Starting the application is as easy as: | ||
|
|
||
| ```sh | ||
| npm start | ||
| ``` | ||
|
|
||
| ### Using CLI Commands | ||
|
|
||
| Refer to [Command-line interface](https://loopback.io/doc/en/lb4/Command-line-interface.html) for the full list of LoopBack 4 commands. | ||
|
|
||
| ### Adding Additional Dependencies | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to mention
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is currently documented at this link |
||
|
|
||
| Executing CLI commands will automatically update the dependencies in your package.json file and install them. | ||
|
|
||
| If you need to install additional dependencies or dev dependencies, do so with | ||
|
|
||
| ```sh | ||
| npm install --save | ||
| ``` | ||
|
|
||
frbuceta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| or | ||
|
|
||
| ```sh | ||
| npm install --save-dev | ||
| ``` | ||
|
|
||
| The commands above will update the dependencies in your package.json file and install them. | ||
|
|
||
| ## Learn More | ||
frbuceta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| To learn more about LoopBack 4, please refer to our [documentation](https://loopback.io/doc/en/lb4/). The developer guide can be found [here](https://github.com/strongloop/loopback-next/blob/master/docs/site/DEVELOPING.md). | ||
|
|
||
| > We also encourage the community helping each other out!<br /> | ||
| We encourage the community to help each other out! | ||
|
|
||
| ## Support | ||
frbuceta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| For community support, open an issue on [LoopBack repository](https://github.com/strongloop/loopback-next). You can also join the [LoopBack Slack workspace](http://loopbackio.slack.com/) via [this invitation link](https://join.slack.com/t/loopbackio/shared_invite/zt-8lbow73r-SKAKz61Vdao~_rGf91pcsw). We also encourage the community helping each other out! | ||
frbuceta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [-@2x.png)](http://loopback.io/) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,6 +226,7 @@ module.exports = class ProjectGenerator extends BaseGenerator { | |
| this.destinationPath(''), | ||
| { | ||
| project: this.projectInfo, | ||
| cliVersion, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I am putting a message similar to what Angular says when you create a project with "this has been generated with Loopback CLI version X"
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please note we already captures cli version in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know, this that I am putting in the README file only has a visual and informative character. It has no other functionality
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @frbuceta , thank you for this PR. It is a good idea to add more content to this readme. |
||
| }, | ||
| ); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.