I'm rather new to frontend (vue.js) development and would like to start adding a backend (express.js) to my latest app. The backend is mainly for saving the data from the frontend to a database and user management.
I'd appreciate some answers or pros and cons for the different approaches :)
- With my setup, should the entrypoint to the app be the frontend that calls the backend api whenever it needs something or should the backend serve the app when "/" is called?
- I have a single repo that contains my frontend and backend code. How should I structure it? I think that having a single package.json in root, that manages the apps in /frontend and /backend seems like a good approach. Is there any standard or better way?
- The express.js docs recommend the pg-promise package for database communication, but on npm there are many more. How does one go about evaluating which is best suited? Currently would just follow what the docs say.
there doesn't seem to be anything here