Skip to content

Add quasar framework docs for generator. #836

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

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Conversation

devel-pa
Copy link
Contributor

@devel-pa devel-pa commented Jun 8, 2019

Hi,
Added docs for api-platform/create-client#134
I hope the branch is the right one.


In the app directory, generate the files for the resource you want:

$ generate-api-platform-client -g quasar https://demo.api-platform.com src/ --resource foo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could simply be yarn dlx @api-platform/client-generator -g quasar https://demo.api-platform.com src/ --resource foo

Copy link
Contributor Author

@devel-pa devel-pa Jun 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, could be nice, but I've tried to keep the same format as in Vue generator. I can modify both if you want.

Also, there are NPM users.

The code is ready to be executed! Register the generated routes in `src/router/routes.js`

```javascript
import fooRoutes from '../generated/router/foo';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a next version of the generator, you could use recast to automatically add this code (as done in the new Next.js generator). Not related to the docs PR thought.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, I'll keep in mind.

@dunglas dunglas merged commit bf25136 into api-platform:2.4 Jun 11, 2019
@dunglas
Copy link
Member

dunglas commented Jun 11, 2019

Thanks @devel-pa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants