Skip to content

nogibjj/fan_xu_individual_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

Imdividual Project #2

This project is designed to create a Rust CLI tool that can be used to modify a database that has data from historical projections of the NBA Draft

Project Structure

📦 fan_xu_rust_mini
├─ .devcontainer
│  ├─ Dockerfile
│  └─ devcontainer.json
├─ .github
│  └─ workflows
│     └─ CI.yml
├─ .gitignore
├─ README.md
├─ data
│  └─ historical_projections.csv
└─ sqlite
   ├─ Cargo.lock
   ├─ Cargo.toml
   ├─ Makefile
   └─ src
      ├─ lib.rs
      └─ main.rs

©generated by Project Tree Generator

Data

historical_projections.csv contains historical results of the NBA draft projection model, 2001-2015.

The dataset contains the data behind the story Projecting The Top 50 Players In The 2015 NBA Draft Class. It can be accessed here

User Guide

To use this CLI, first clone this git repo. To install Cargo, use the following command:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Check if the installation was successful with

cargo --version

Once Cargo has been installed, you can compile the file with (make sure you are inside the sqlite directory)

cargo build --release

To begin using the CLI, add the compiled binary with the following command, replacing the path with the location of the sqlite binary file

export PATH=$PATH:/<Path>/sqlite/target/release

Once the compiled binary has been added to your path, you can use the CLI with the following commands:

alt text

Example

The CLI allows you to create, load, query, and delete data loaded from historical_projections.csv. Below is an example

alt text

Binary Download Link

https://github.com/nogibjj/fan_xu_individual_2/actions/runs/12330419995/artifacts/2321140322

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published