Reputation: 93
I am new to node and I want to start building the following application:
The app should be a catalog of services offered by certain businesses. Users should be able to start and track the status of processes along with listed services providers.
So there are four databases:
And three types of users:
Admins should have CRUD permissions to all databases. Businesses can only perform CRUD to their own profile (provided service) and update relevant processes. Users can perform CRUD to their on going processes.
I read a lot about npm modules like everyauth, mongoose-auth, passport but I have difficulties understanding their relationships with databases like mongodb especially when I have three types of users with three different permissions and four databases. I dont know how pages can check for three different types of cookies.
Should I create three different login and regestration systems? If yes, how?
Can someone please help me out..not with code..but with a concept or a relevant tutorial.
Passport requires the following for username & password configuration:
What I can't understand is:
Upvotes: 3
Views: 3498
Reputation: 16705
My recommendations:
Upvotes: 4