sincraianul / generator-angular-material-fullstack

Yeoman generator for Angular with Angular Material and an Express server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wish: Using Swagger to define server API

schlpbch opened this issue · comments

Dear author

Thank you for your excellent generator. To make it perfect, an integration of swagger/open API would be perfect. If I could support by providing the YAML file for the service given, let me know.

Cheers
-as

Thanks for opening an issue. To be frank, this repo is really outdated. Originally, it was a fork of this repo I made to see if I can integrate angular-material into it. Nowadays, I try to separate my app into microservices, so having the API and the front-end in the same repo doesn't make sense anymore. For the API, I usually use hapijs with hapi-swaggered, so I am able to generate docs through configs. If you supposedly want to build a standalone API, I recommend looking into hapi. :)

What are you trying to achieve? If you're looking to integrate swagger into an express app, there are plenty of npm packages that can aid you into doing that.

Dear Andrej

Thanks for your fast reply. What I really like about this Repo is that you
get a working project where front end, back end and especially all the tool
configurations just matching

I've started the other way round, first defining an API with swagger, then
generating a python/flask based server, then a Angular based front end and
now trying to retrofit all the tools like browser and grunt. I learned a
lot especially that it doesn't make much sense to write front-end and
back-end in two different but similar languages. I'll start from scratch
based on the scaffolding from your generator.

Ideally a generator would build a dummy front-end and a dummy back-end
based on the api defined in swagger/OpenAPI. I assume that one would need
some sort of meta project that guarantees mutually consistent front and
back-end projects....

How do you suggest bootstrapping fitting front-end and back-ends?

Sincerely

-as

Andrei Sîncrăian notifications@github.com schrieb am Do., 28. Apr. 2016
12:21 PM:

Thanks for opening an issue. To be frank, this repo is really outdated.
Originally, it was a fork of this repo
https://github.com/angular-fullstack/generator-angular-fullstack I made
to see if I can integrate angular-material into it. Nowadays, I try to
separate my app into microservices, so having the API and the front-end in
the same repo doesn't make sense anymore. For the API, I usually use hapijs
with hapi-swaggered, so I am able to generate docs through configs. If you
supposedly want to build a standalone API, I recommend looking into hapi. :)

What are you trying to achieve? If you're looking to integrate swagger
into an express app, there are plenty of npm packages that can aid you into
doing that.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#7 (comment)