https://github.com/emanuelefavero/sql
This is a Node.js playground for SQL queries
https://github.com/emanuelefavero/sql
basketball-reference csv javascript mysql mysql2 nodejs postgresql sql
Last synced: 5 months ago
JSON representation
This is a Node.js playground for SQL queries
- Host: GitHub
- URL: https://github.com/emanuelefavero/sql
- Owner: emanuelefavero
- License: mit
- Created: 2025-01-06T06:13:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-26T08:28:03.000Z (about 1 year ago)
- Last Synced: 2025-05-31T06:44:41.526Z (10 months ago)
- Topics: basketball-reference, csv, javascript, mysql, mysql2, nodejs, postgresql, sql
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SQL
This is a Node.js playground for SQL queries
## Setup
- Clone the repository
- Run `npm install` to install the dependencies
- Follow instructions in [POPULATE.md](POPULATE.md) to populate the database with the data from the CSV files
> Note: Use the `users.csv` file to populate the `users` table
## Usage
- Run `npm start` or `npm run dev` to start the server
- Edit the `index.js` file to write your SQL queries
> Note: You could also use the MySQL Workbench to run the queries. To open the MySQL Workbench, run `mysql -u root` (add the `-p` flag if you have a password). To exit the MySQL Workbench, run `exit`. Before running the queries, remember to select the database by running `USE test_db;`
## Resources
- [MySQL Workbench](https://dev.mysql.com/downloads/workbench/)
- [MySQL Documentation](https://dev.mysql.com/doc/)
- [SQL Tutorial](https://www.w3schools.com/sql/)
- [SQL Cheatsheet](https://learnsql.com/blog/sql-cheat-sheet/)
## Data Resources
- [Basketball Reference](https://www.basketball-reference.com/)
- [IMDb](https://www.imdb.com/)
- [Kaggle](https://www.kaggle.com/datasets)
- [UCI Machine Learning Repository](https://archive.ics.uci.edu/ml/index.php)
- [Data.gov](https://www.data.gov/)
## License
- [MIT](LICENSE.md)