Application built that will allow an admin to list bowls, teams, and games for users to select who they think will win. YouTube Examples https://www.youtube.com/watch?v=CDrJx63A0F4
- MySQL 8
- Express
- Angular 8
- Node JS 10.16.3
- Ionic 4
- PWA
- Download and install the latest version of VSCode (Just click next) https://code.visualstudio.com/
- Download and install the 10.16.3 version of NodeJS (Just click next) https://nodejs.org/en/
- Download and install the latest version of git (Just click next) https://git-scm.com/download/win
- Download and install the latest version of MySQL Workbench (Just click next) https://dev.mysql.com/downloads/workbench/
- Get Bash Terminal
- Open terminal
- Open Command Palette:
Ctrl + Shift + P - Type
Select Default Shell - Select
Git Bash - Open a New Terminal
- Clone Project
git clone https://github.com/FangerZero/bowl-games.gitYou may need to login.
- Install Dependencies
- Run command
npm i - Install Angular
npm install -g @angular/cli - Insall Ionic
npm install -g ionic - Install Express
npm install --save express - Install web-push
npm install web-push -g
Tables created when backend server runs
- Install MySQL Server
- Download and install the latest version of MySQL Server https://dev.mysql.com/downloads/windows/installer/8.0.html
- For help https://www.onlinetutorialspoint.com/mysql/install-mysql-on-windows-10-step-by-step.html
- Keep Defaults until you get to "Select Products & Features"
- Select Products & Features Install MySQL Servers > MySQL Server 8.0.17 -X64 Install Application > MySQL Shell 8.0.17 -X64
- Remember your root account password
- Click Next/Execute until complete
- Start MySQL Server
- Should auto start
- If not go to windows button and type services
- Look for the name of your database, right click and start
- Setup Schema
- Open MySQL Workbench
- Create a new new connection, if running local use
127.0.0.1:3306 - Use the password & user name you created earlier
- Once connected on the left look for "Users and Privileges", it' sunder management
- Click Add Account
- Create a new account and give DBA privileges
- Create a new Schema and call it bowl_games
- In the code file server/util/database.js change the username and password to the account you just created
You will create the table when you start the NodeJS server.
Tables created when backend server runs
- Install & Update MySQL Server
- Run command
apt update && sudo apt install mysql-server - Press
YthenEnter - Check the status
service mysql status
- Configure Server
mysql_secure_installation- Press
Enter - Put in the password and keep it handy
- Press
Y - Press
Enter - Press
Y - Press
Enter - Press
Y - Press
Enter
- Setup Schema
- You should be in
mysql>command line Below replace with the name of your database - Run command
CREATE DATABASE <NAME>; - Run command
USE <NAME>; - Create User account. Replace with the root user. Replace with the root user's password.
- Run command
CREATE USER'<USER>'@localhost' IDENTIFIED BY '<PASSWORD>'; - Run command
GRANT ALL PRIVILEGES ON <NAME>.* TO '<USER>'@'localhost';
- Start MySQL Server
- Run command `` in terminal
You will create the table when you start the NodeJS server.
#Progress Web Application Setup (PWA) You will need to set this up as there are certain pieces that necessary
- Vapid Keys
- Generate Keys
web-push generate-vapid-keys
- .env File
- You need to fill out the .env.sample file
- Node JS Server
- Run command
node server.jsThis will create your tables
- Client Server w/out PWA
- Run command
ionic serve - If the command is not found continue below
- Open a folder
- Right click on
This PC - Go to
Properties - In the left panel click
Advanced System Setting - Click on
Environmental Variable - Under
System Variableselectpathvariable - Click on
Edit - Add variables
%AppData%\npmand%ProgramFiles%\nodejs\ - Click
OK - Restart your machine
- Run VSCode as Admin
- Client Server w/ PWA
- Install http-server
npm install http-server -g - If the commands are not found, follow steps 2-13 from Client Server w/out PWA
- in the project root folder,
bowl-games - Run command
ionic build --prod - Go to the newly created folder, normally
wwworbuild - Run command
http-server -p 8081