adityabisoi / startup-incubator

A website for showcase products pre-release
GNU General Public License v3.0
20 stars 33 forks source link

AddedUserModel #53

Closed ayush25102001 closed 2 years ago

ayush25102001 commented 2 years ago

Added the user Model with fields like name, email, password. Used the validator package for email and password field. Used mongoose package to make use of mongoose model. PR with respect to issue #50

adityabisoi commented 2 years ago

Why is a new folder created inside client?

ayush25102001 commented 2 years ago

Why is a new folder created inside client?

I created a folder named backend inside client so that all server side folders and files concerned with the backend are inside one folder. This makes the code more modular and it will be easy if we add new routes/features in the backend.

ayush25102001 commented 2 years ago

Why is a new folder created inside client Ig I need to remove that folder of backend outside client ??

adityabisoi commented 2 years ago

Yes, but the package.json you see in the root folder can be used for backend.

ayush25102001 commented 2 years ago

Yes, but the package.json you see in the root folder can be used for backend.

Can u tell me what modifications should I make ??

ayush25102001 commented 2 years ago

Yes, but the package.json you see in the root folder can be used for backend.

Done !!

adityabisoi commented 2 years ago

Again, the problem with the package-lock.json. You should not delete it, instead be sure not to commit it.

adityabisoi commented 2 years ago

Yes, but the package.json you see in the root folder can be used for backend.

Can u tell me what modifications should I make ??

I meant, we can use the root directory to have backend code.