Pool game score tracking app
To run this project:
- Python2 or 3
- SQLite
- sqlalchemy
- flask
catalog folder: 1. views.py 2. model.py 3. data.py template folder: 1. main.html 2. home.html 3. play_game.html 4. start_game.html 5. create_player.html 6. leaderboard.html static folder: 1. styles.css 2. app.js img folder: 1. pool_body_bg.jpg
This project sets up a SQLite database for a fictional pool game score tracking web application. HTML, CSS and JavaScript uses to design front end functionality. The provided Python script uses the sqlalchemy library to create new player and read player list from the database. After choosing two players from the list, user selects the winnera and python scripts update the statistics for both players involved in the game.
- VirtualBox is the software that actually runs the virtual machine. You can download it from virtualbox.org. Install the platform package for your operating system.
- Vagrant is the software that configures the VM and lets you share files between your host computer and the VM's filesystem. Download it from vagrantup.com. Install the version for your operating system.
- The database is supplied inside catalog folder named itemcatalog.db or user can run the data.py file after 6th and 7th steps
- Open a Linux-like command line terminal (e.g. Git Bash, MacOS terminal, etc.)
- Start the virtual machine using command vagrant up
- Login to the VM using vagrant ssh
- Using cd command go to the path where views.py was saved
- Enter the following command to execute the program python views.py
- Open a browser and enter folloeing address in the browser http://localhost:5000
- You can now use the app in your local machine
https://github.com/szasohel/pool_stats.git
Sayed Zahed Abdullah Sohel