The primary objective of this website is to gain a deeper understanding of authentication mechanisms and the implementation of user cookies. Upon a user's login, a session cookie is generated with a unique identifier to facilitate their interaction with the site. Additionally, a unique identifier that was assigned to each user is stored in the website's database. This unique identifier serves as a reference point for identifying users and managing their sessions. As a result, users experience seamless automatic login, triggered by the verification of their unique identifier in the database.
- Registration System: Users can sign up and create an account on the website.
- Login System: Registered users can securely log in to their accounts.
- Session Management: Creation and management of user sessions using cookies to maintain user state.
- Database Integration: Storing user data, including unique identifiers, in a database for retrieval and verification.
- Automatic Login: Enabling users to be logged in automatically upon returning visits based on their unique identifier.
- Profile Page: Each user has a dedicated page displaying their personal information.
- Add Media: Users can add media by providing information about it.
- Edit Media: Existing media can be edited.
- Delete Media: Users have the ability to remove media from the database as needed.
- Search for Media: The website offers a search functionality, enabling users to find specific media using keywords.
- React: Frontend
- Express.js: Backend
- SQLite: Database
Clone the repository:
git clone https://github.com/Edga380/media-tracking-website.git
cd media-tracking-website
npm install
node server.js
npm run dev
Open your web browser and navigate to http://localhost:5173 to access the application.