Skip to content

Conversation

@Medha375
Copy link

ISSUE #46

This PR introduces the User Profile backend system, allowing for the creation and management of user-specific data.
which will responsible for storing

  1. User Name
  2. User id
  3. E-mail
  4. Last login
  5. Plants viewed (with time stamp)
  6. Past Purchase (including plantId, quantity, price)

This will help the user to keep the track of their present and past activities.

CHANGES AND IMPLEMENTATION

  • I created a UserProfile.js in routes folder and implemented Rest Apis
    for fetching the required information for User Profile.

-Setup routes for handling user data

  • Added extra attributes in the Schems like, last login, past purachse, qunatity, price, recent viewed items, viewed at.

  • Created a .env variable for storing the mongod URI

  • Successfullt connected the Db (index.js)

  • Created Routes accordingly for the UserProfle.js and user.js in index.js

  • Successfully tested the API's on POSTMAN (GET, PUSH, PUT)

Screenshot 2025-07-26 033048

<img width="1441" height="1025" alt="Screenshot 2025-07-26 032401" src="https:
Screenshot 2025-07-26 030221
//github.com/user-attachments/assets/47f4404f-7a1e-4030-9ab0-40b2bb94ad9e" />

@netlify
Copy link

netlify bot commented Jul 26, 2025

👷 Deploy request for cleanbreath pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b3e4afd

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