added setupDB function to create db "TeamUp" and collection "users"
added api/users/create to check if user already exists in db; else create user in db upon first time login
added api/users/update to update the time field in the users collection of a MongoDB db for user with specified email address
Homepage.tsx:
added functions createUser and updateUserTime to create new user in backend by sending POST request to '/api/users/create' endpoint with user's name and email, and if user already exists, it updates user's time field
Profile.tsx:
added condition to return user to logged out homepage upon reload
added header
Profile.css:
added basic structure to profile view page
Docker (optional addition):
added docker-compose and backend/frontend Dockerfiles for mongoDB setup via Docker
adjusted url in index.ts
mongodb ui available at localhost:8081
index.tsx:
Stores Auth0 session token in browser's cache -> keeps user logged in upon refresh
index.ts:
Homepage.tsx:
Profile.tsx:
Profile.css:
Docker (optional addition):
index.tsx: