I want to build an application using a backend which is built in a NodeJS/ExpressJS and Frontend with Hubspot CMS. is it a good idea to build.
I want to build a web application, it needs to have a Login/Register system. For now the application will have 3 different roles. role 1 will login and add few product details, and he might relogin to edit the products. for the other roles they have differrent tasks. complexity that I have is different user role set up and securing the DB updates with the roles. The app will communicate very frequently.
Hi, @AbhilashAchu Welcome to our community! This is a challenging question to answer for you. My suggestion is to clarify the following and then update this post or create a new one:
What are you building?
What level of complexity are you currently dealing with?
Does that level of complexity justify having a strong Separation of Concerns?
How frequently your HubSpot app will need to communicate with your NodeJS backend?
Having specific details helps our community understand where and how they can assist.
Hey AbhilashAchu, diving into NodeJS/ExpressJS for the backend and HubSpot CMS for the frontend is a solid choice! I’ve been down that road before, and it’s a robust combo. For your roles and permissions, consider using a middleware like ‘express-jwt’ for authentication – it’s lightweight and plays well with Node/Express.
Setting up different roles is straightforward, but when it comes to securing DB updates, consider creating specific routes/functions in your Node backend that check the user’s role before processing any DB changes. Keep it simple; don’t overcomplicate.
Since your app will communicate frequently, optimize your API calls. Leverage async/await in Node to manage this elegantly. Also, for the frontend, HubSpot’s CMS is pretty user-friendly. If you’re looking into frontend-entwicklung mit web, HubSpot’s drag-and-drop features can contribute to a smooth UI experience.
Best tip: Keep it simple, build, test, and iterate, good luck.