TypeScript-Node-Starter icon indicating copy to clipboard operation
TypeScript-Node-Starter copied to clipboard

Remove MongoDB

Open luistrigueiros opened this issue 6 years ago • 10 comments

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.

luistrigueiros avatar Aug 10 '19 09:08 luistrigueiros

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.

orta avatar Aug 10 '19 10:08 orta

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.

luistrigueiros avatar Aug 10 '19 18:08 luistrigueiros

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.

victorsebrito avatar Aug 10 '19 23:08 victorsebrito

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

orta avatar Aug 11 '19 16:08 orta

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

jkjha avatar Oct 07 '19 08:10 jkjha

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

malforsaja avatar Apr 24 '20 10:04 malforsaja

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.

geoffwellman avatar Sep 13 '20 01:09 geoffwellman

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

diberry avatar Sep 14 '20 15:09 diberry

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

samal-rasmussen avatar Feb 04 '21 17:02 samal-rasmussen

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

top-master avatar Jul 06 '21 17:07 top-master