TOtterhall / pawfect

examensarbete
0 stars 0 forks source link

Backend-setup continue #17

Open TOtterhall opened 6 months ago

TOtterhall commented 6 months ago

Start my Backend setup Backend: Node.js, Language: JavaScript Database: MongoDB, possibly Stripe integration Database: MongoDB Compass/MongoDB Atlas

Continue Product setup User setup

TOtterhall commented 6 months ago

Now I kan get a specific product by Id

Image

TOtterhall commented 6 months ago

If I put in "wrong/not existing ID" I will get this answear...for now...

Image

TOtterhall commented 6 months ago

Simply setup customer => register customer. controller.js customer.model.js customer.router.js

Image

TOtterhall commented 6 months ago

Image

TOtterhall commented 6 months ago

Add login function

image

TOtterhall commented 6 months ago

Organised .rest

Image

logout function and middleware to validate customer when register

TOtterhall commented 6 months ago

added some errorhandling to serverside