Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hw06 email #5486

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open

Hw06 email #5486

wants to merge 37 commits into from

Conversation

zetdou
Copy link

@zetdou zetdou commented Sep 15, 2024

No description provided.

zetdou and others added 30 commits August 12, 2024 18:32
Working listContacts, getContactById, removeContact
Working post http api method (downgrade nanoid)
updateContact, put method working
Fix correct paths to routes and add global middleware to handle errors
Routes and global middleware
Logic moved to controllers and services. Add joi package to validation entering data in post and put method
Install mongoose, dotenv and connect to our database
Add catch to promise on connection.
Create mongoose schema to contact model, test db with api get request and its work. Edit correct path to db and collection
Add controller functions without removing and update favourite status plus making some changes in services
Fix searching contacts by id and add delete function. Problem with adding contact to db
Update contactController.js
Make changes in updateContactDetails function and write updateContactStatus. Add run validators to services and change code in updateExistingContact function. Remove version key i schema
Create the user schema without bcrypt
Add authRouter to app. Create signup and login method working good. Add function setPassword and validatePassword to userSchema
Split auth logic to service and controller, add authMiddleware
zetdou and others added 7 commits September 5, 2024 19:32
authController, authService
Working version with error but avatar is updated
Configure nodemailer, create endpoints, create mail verification and resend mail verification with brevo.
Modified code to user cannot login when verification mail is unclicked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant