An open API service indexing awesome lists of open source software.

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

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)