typescript-starter icon indicating copy to clipboard operation
typescript-starter copied to clipboard

Node.js application - simple server example

Open iztsv opened this issue 6 years ago • 5 comments

  • I'm submitting a ... [ ] bug report [X] feature request [ ] question about the decisions made in the repository [ ] question about how to use this project

  • Summary

Thanks for the tool! Great work!

If I choose Node.js application type during installation I have a library example in src folder.

What do you think about generate simple web server as example in src if user select Node.js application type?

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

iztsv avatar Mar 23 '18 06:03 iztsv

yea, I was thinking something similar - maybe an "express" option instead?

on a side note, I have a much more "C# / Java / es6" version of most of the demo classes... Any way I could integrate these? or should I do a different repo or? (meaning they're all "export class / interface" instead of exporting individual functions...)

chadbr avatar Mar 23 '18 17:03 chadbr

@ilyaztsv @chadbr I'd be very happy to take a PR for adding an express option! Even if the PR is just for the actual code, I'm happy to integrate it in the CLI.

bitjson avatar Mar 27 '18 13:03 bitjson

@bitjson thanks for the reply!

I'll try to do it as soon as have enough time.

Do you prefer express example of may be koa? 😄

iztsv avatar Mar 27 '18 14:03 iztsv

Interesting -- after looking at my comments I failed to mention I am doing expess web api's only...

I'll take a crack also (slim down my current solution stack...) -- and we can compare / improve?

Thanks, Chad

chadbr avatar Mar 27 '18 15:03 chadbr

No problem :) I am planning to create PR at Saturday or Sunday.

iztsv avatar Mar 27 '18 15:03 iztsv