Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
words.alexeypro.com
Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
1–10 of 15 posts
Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#2Do you use any ORM for MySQL?
Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#3Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#4Nice work! Do you use any ORM for MySQL?
The switch between using Mongo and MySQL -- is just using different DAO -- https://github.com/alexeypro/crud-bones/blob/master/src/api-... I kept the "interfaces" (yeah, not interfaces but contracts, 'cause JavaScript has no interfaces, but you know what I mean) same, and that makes the switch EASY.
In short-term plans I want to update README as for the deployment instructions to other Node.JS hostings, and probably throw some simple caching layer on top of Redis, and definitely some unit testing. Then it should be all set. Just basics to get me up & running with new backend effort :-)
Frankly, even those things are not necessary. They will make the app more complicated, but let's be honest -- we use Node.JS because it's lightweight and minimalistic approach, so why create an ugly-beast-which-does-it-all-its-own-way?
Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#5Just in time!
Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#6Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#7Interesting code. Have you thought about automatically creating the models by using SHOW TABLES + DESCRIBE? Might save you some time.
Besides, I mentioned that already, we all know we are going to change this code for our own needs. So it needs to be simple, straightforward and interchangeable. That was my goal.
Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#8Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#9Re: Crud-bones - Boilerplate project to kick-start your Node.JS/Mongo/MySQL CRUD app
#10Nice work! Do you use any ORM for MySQL?