Open luistrigueiros opened 5 years ago
Thanks Oscar, different people are coming looking for different things - Given that there's a focus on building a node API here, I think going all the way to a database makes a lot of sense for this template.
As a starter template for people coming new to the language you should make it simpler and more accessible, maybe by using an embedded mongo so that people new should not go about also setup mongo.
I think Microsoft should provide more starter projects for TypeScript. I'd love to find an official template for simple TS library or a CLI application.
I'd recommend looking at tsdx for that - https://github.com/palmerhq/tsdx
Yes, please remove MongoDB. Starter project should be like template for new project.
If you check branch "noDatabase" of this template MongoDB is removed.
I agree, it's not a great "starter" when it forces you to use a database, this boilerplate has got very bloated from what it used to be.
Can the starter move toward feature flags and modules - that would allow the features to grow separate from but inclusive to the starter.
The complexity of maintaining the mongo db integration might be one of the reasons holding back the maintenance of this project. Currently TypeScript-Node-Starter is falling way behind in upgrading the packages in package.json. See: https://github.com/microsoft/TypeScript-Node-Starter/issues/305
I'd vote in favor of just using a mocked in memory db object. That would show the intention well enough I think.
If we need to use an actual database then it should really be one that can be embedded, so that everything is installed with npm install
. Maybe this: https://github.com/Level/levelup
Maybe at least, just replace MongoDB with MySQL;
No one did outlaw developing accounting App with Node.js
;-)
Like your fork: https://github.com/akitoeki/TypeScript-Express-MySQL-Starter
I think that this starter should be made simpler without including MongoDb upfront and have a generator. As a starter I am looking for guidance on how to setup Node+Express+Typescrit but not Mongo. More important are things like linter and how to install typedefintions and maybe connect to an external API.