A web application that shows the statistics of the TOP10 Teams also can see the ranking of the basketball team in this league in the past 5 years in a visualization that you easy to understand! Moreover, the comparison between the 2 teams competing together is provided too you can easily see the percentage of their winning rate!
Software and Knowledge Engineering, Kasetsart University
Full name | ID |
---|---|
Thanakrit Darueang | 6010545773 |
Pichaaun Popukdee | 6010545862 |
Supaluk Jareonsuk | 6010545835 |
- nodejs latest version
- postgres sql version 10.1 or lastest
- Make sure your have add the path to postgres and run pgAdmin server before setup database
npm install
psql -U postgres -f ./scripts/db/setup_user.sql
psql -U postgres -f ./scripts/db/create_db.sql
psql -U postgres nba < ./scripts/db/setup_table.sql
node scraper_api.js
Run this command on terminal
./scripts/setup_local_db.sh
*if permission denied, you should run chmod before set up
chmod +x ./scripts/setup_local_db.sh
./scripts/setup_local_db.sh
npm start
or
nodemon server.js
Open with http://localhost:3000/