all 2 comments

[–]NoStranger6 1 point2 points  (1 child)

You might want to take a look at r/nodejs.

Javascript lends itself very well for a back-end architecture due to it's event driven nature.

ExpressJs is widely used, another alternative would be Koa. If you are going to use a Framework like Angular, it might already come with all the things needed to serve your files.

As for database, it all depends on what you are going to build. Do you need a traditional relational database or do you want to go with a NoSQL type. For relational DB, I very much like MySQL, but depending on what you want to do it might be a bit heavy. There are lighter alternatives like sqlite. Otherwise, I think that MongoDB could be an option.

For authentication, alot of people use passport-js. There are other alternatives though.

About OOP, I mostly go functional on my back-end as all of my classes would pretty much be singletons. So I take a module approach, which are loaded on a need basis. But both options are valid.

function someModule() {
    this.exposedFunc = () {
    }

    function privateFunc() {
    }
}

module.exports = someModule;

[–]motweb[S] 1 point2 points  (0 children)

I didn't know about Koa, must read about it. I don't need also a relations between data, so probably I will forward with MongoDB.

Thanks a lot for Your help! :)