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

adds working scaffolding for server and server-client generators #21

Merged
4 commits merged into from
Aug 18, 2019
Merged

adds working scaffolding for server and server-client generators #21

4 commits merged into from
Aug 18, 2019

Conversation

ivangsa
Copy link
Contributor

@ivangsa ivangsa commented Aug 17, 2019

Hi

I've been playing with nestjs (and other options as well) and build a working base project for this blueprint.

With this pull request we can generate projects which are compatibles as microservices in a jhipster setup (or monoliths with no client)

[x] Running microservice o monolith project
[x] Import jdl: functional entity-server generator with simple options (no dto, no serviceImpl...)
[x] Typeorm mappings for both sql and mongodb (todo: needs way more testing of different relations, combinations..)
[x] Rest API (with headers) compatible with other jhipster implementations
[x] Spring Cloud Configuration client
[x] Eureka client: there are some issues registering zuul routes in jhipster registry app..
[x] JWT authentication and role base method decorators
[x] Swagger documentation (todo: export json/yaml to integrate with jhipster gateway)

There is plenty of work to todo...
This is a list of some things to work on now (which will be obviously incomplete):

[ ] Unit tests: both for the blueprint and for generated project
[ ] DTOs based rest api
[ ] Validation
[ ] Different pagination options
[ ] Elastic Search support
[ ] Search api
[ ] User management api
[ ] Other security/authentication options
[ ] Other core/admin jhipster services

(for monoliths with clients we will need to give it a thought as client seem to expect jar/war packaging...)

@deepu105 is it ok if you give me access to the repo so I can start commiting changes?

Thanks a lot.

removes custom promting as it hides perfectly valid options while some
other options are being harcoded.
This should be redone correctlly in the future.
@ghost
Copy link

ghost commented Aug 18, 2019

Hi @ivangsa ,
Thanks a lot for the great work!
I have some questions:

  1. this pull request includes also the changes of PR-17?
  2. what is the structure of the server nestJS generated? How to run it? where is located?
    Thanks in advance.

@ivangsa
Copy link
Contributor Author

ivangsa commented Aug 18, 2019

Hi,
yes it includes #17

once you generate a new aplication you can run it using:

npm start

You will need to edit bbdd type and connection in 'ormconfig.json', there are some examples you can copy paste, by default it uses mongodb

You can import-jdl but mappings but I would expect some of them not to work yet

In the next days I will be working on finishing the server-entity generator (typeorm, validation...) and adding other security options

If you ask me, maybe you can start adding core/admin jhipster rest-apis for user-management and account: register, settings, change password...
you can use 'src/core/users' module, (feel free to modify it at your heart)

If you generate an application named 'BASE_NAME' there is an script 'source2blueprint.sh' that helps re-generate blueprint templates for changes you can make on the running application

Can you merge this PR so we may start getting some more help or feedback?

Thanks a lot for your help!

This pull request was closed.
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.

None yet

1 participant