Skip to content
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

What to do after step 3 to generate api ? #585

Open
shambhulky opened this issue Jun 18, 2024 · 7 comments
Open

What to do after step 3 to generate api ? #585

shambhulky opened this issue Jun 18, 2024 · 7 comments

Comments

@shambhulky
Copy link

I have modified all classes according to steps 1 to 3 but i am not able to proceed to 4th step. So for generation of API what to do ? when I am doing npm run dev its throwing issue EntityMetadataNotFoundError:

@chihabhajji
Copy link

not a repository maintainer, but EntityMetadataNotFoundError seems like a connection initialization issue, did you make sure all your entities extend BaseEntity from typeorm ?

@shambhulky
Copy link
Author

shambhulky commented Jun 19, 2024 via email

@chihabhajji
Copy link

if your repo is minimal so far and doesnt contain any sensitive info, can you share it on github on a public repo?

@shambhulky
Copy link
Author

if your repo is minimal so far and doesnt contain any sensitive info, can you share it on github on a public repo?

https://github.com/shambhulky/node-crud-generator.git

@chihabhajji
Copy link

your user entity doesnt extend BaseEntity and also in app.module can you set synchronize: false, to synchronize: process.env.NODE_ENV === 'development',

@shambhulky
Copy link
Author

shambhulky commented Jun 19, 2024

is it mandatory to do for all module ? will it not generate if i used on specific module ?
i am just doing demo on address . I have done all changes on address , then why it is not generating for address ?
I have changed the synchronize setting and also deleted the user module . still code not generated in service and controller.

If possible could you provide one working demo so that i can refer how to use.

@JadenKim-dev
Copy link
Contributor

is it mandatory to do for all module ? will it not generate if i used on specific module ? i am just doing demo on address . I have done all changes on address , then why it is not generating for address ? I have changed the synchronize setting and also deleted the user module . still code not generated in service and controller.

If possible could you provide one working demo so that i can refer how to use.

This library does not generate code, but it makes the controller handle requests for each route properly.
If you send requests to the routes with @Crud applied, you could receive responses.

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

No branches or pull requests

3 participants