bitjson / typescript-starter

Quickly create and configure a new library or Node.js project
https://bitjson.github.io/typescript-starter/
MIT License
3.5k stars 245 forks source link

Node.js application - simple server example #77

Open iztsv opened 6 years ago

iztsv commented 6 years ago

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?

chadbr commented 6 years ago

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...)

bitjson commented 6 years ago

@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.

iztsv commented 6 years ago

@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? 😄

chadbr commented 6 years ago

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

iztsv commented 6 years ago

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