This project is a web-based application for a fictional bank, "Privatbank Mustermann," featuring a stock market simulation game and user registration.
Ensure you have the following installed on your system:
Follow these steps to start the application:
Clone this repository to your local machine:
git clone https://github.com/Koschnag/web-tech-project
cd web-tech-projectNavigate to the frontend directory and build the Docker image:
cd frontend
docker build -t web-tech-frontend .Run the Docker container, exposing it on port 80:
docker run -p 80:80 web-tech-frontendOpen your browser and navigate to:
http://localhost
- frontend/: Contains the frontend code, including HTML, CSS, JavaScript, and Docker configuration.
index.html: Main landing page.registrierung.html: User registration page.boersenspiel.html: Stock market simulation game.styles.css: Shared CSS styles.boerse.js: JavaScript logic for the stock market game.registrierung.js: JavaScript logic for user registration.nginx/: Nginx configuration files.Dockerfile: Docker configuration for the frontend.
To ensure the application works as expected, perform the following tests:
- Registration Form:
- Test all validation rules (e.g., email matching, age restriction, ZIP code format).
- Verify that valid inputs display the success message.
- Stock Market Game:
- Test buying and selling stocks with various amounts.
- Verify that fees are calculated correctly.
- Check the chart updates and market status messages.
- The application does not currently support localization for non-German languages.
- The stock market game does not save progress after a page refresh.
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues:
- Ensure Docker is running.
- Check for errors in the browser console or terminal.
- Verify that port 80 is not in use by another application.
For further assistance, feel free to open an issue in the repository.