vendredi 1 septembre 2017

Nodejs: Building a WEB-API with express, bookshelf and socket.io

I want to develop an API which uses expressjs, socket.io and bookshelf.js.

Now i have a rather stupid question regarding architectural and structural design. I want to know how the folders and files should be creating in a design friendly way.

At the moment my project look like this: http://ift.tt/2iN0Oes I have 2 folder: routes and views.

If i want to add entities and the controllers how should i save them within this structure. Should i create a new folder which is called db and controller or is there any principle i can follow like in java?

I wrote some Node-Applications but never thought about a good way to structure the files and folders and want to know if anyone has experience in good structural design.

Aucun commentaire:

Enregistrer un commentaire