A modern Single Page Application (SPA) designed for gamers, built with vanilla JavaScript, Bootstrap 5, and HTML/CSS.
- SPA Architecture: Smooth navigation without page reloads.
- Client-Side Routing: Utilizes the History API for dynamic routing.
- Responsive Design: Mobile-first layouts powered by Bootstrap 5.
- Modern UI: Enhanced with Bootstrap Icons for a polished look.
- Multiple Views: Includes Home, Games, Profile, and Login/Register pages.
index.html- Main entry point of the application.src/assets/css/style.css- Custom styles for the app.src/js/router.js- Manages SPA routing logic.src/js/views/- Houses individual view components.
To run the app locally:
- Clone the repository:
git clone <repository-url> cd game-hub-spa
- Open
index.htmlin your browser.
Note: Use a local server for proper routing. Options include:
- Python:
python -m http.server
- Node.js (http-server):
npm install -g http-server http-server
Run the app using Docker, which includes both the Node.js app and a PostgreSQL database:
- Install Docker and Docker Compose.
- Clone the repository and navigate to the project directory:
git clone <repository-url> cd game-hub-spa
- Build and start the containers:
docker-compose up -d
- Access the app at http://localhost:3000.
- Stop the containers:
docker-compose down
- To remove the database volume:
docker-compose down -v
This app uses modern JavaScript features and the History API, optimized for modern browsers.
This project is licensed under the MIT License.