microsoft / TypeScript-Node-Starter

A reference example for TypeScript and Node with a detailed README describing how to use the two together.
MIT License
11.36k stars 2.77k forks source link

Remove MongoDB #218

Open luistrigueiros opened 5 years ago

luistrigueiros commented 5 years ago

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.

orta commented 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.

luistrigueiros commented 5 years ago

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.

victorsebrito commented 5 years ago

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.

orta commented 5 years ago

I'd recommend looking at tsdx for that - https://github.com/palmerhq/tsdx

jkjha commented 5 years ago

Yes, please remove MongoDB. Starter project should be like template for new project.

malforsaja commented 4 years ago

If you check branch "noDatabase" of this template MongoDB is removed.

geoffwellman commented 4 years ago

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.

diberry commented 4 years ago

Can the starter move toward feature flags and modules - that would allow the features to grow separate from but inclusive to the starter.

samal-rasmussen commented 3 years ago

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

top-master commented 3 years ago

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