A front-end web application built with vanilla JavaScript for the Noroff JavaScript 2 course assignment. Users can browse, search, sort, and favourite classic old games from the Noroff Old Games API.
- Register a new account (requires
stud.noroff.noemail) - Login / Logout with token-based authentication
- Browse all games on the home page
- Search games by name in real time
- Sort games by name (A–Z, Z–A) or release year
- Filter by genre via dropdown or genre tags on cards
- View game details — full description, metadata, genre links
- Favourite / Unfavourite games (stored in
localStorage) - Profile page — shows your account info and favourite games
- Genre page — browse all games within a specific genre
- Vanilla JavaScript (ES6 modules)
- HTML5
- Tailwind CSS v4 (installed via npm)
- Noroff API v2
- localStorage for favourites and auth state
npm installRun this in one terminal and keep it running while you work:
npm run watchThis generates css/output.css from your Tailwind classes.
Open a second terminal and use one of these options:
VS Code Live Server
Right-click index.html → Open with Live Server
Before pushing to GitHub for deployment, run a final build:
npm run buildThen commit the generated css/output.css along with your other files so the deployed site works without a build step.
- Email must be a valid
stud.noroff.noaddress - Username must not contain punctuation except underscores
- Password must be at least 8 characters
See AI_LOG.md for a record of any AI assistance used during this project.
Built for educational purposes at Noroff School of Technology and Digital Media.