These examples are hosted on this repository's GitHub pages.
# yellow tripdata
wget https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2023-01.parquet
python3 -c "import pandas; pandas.read_parquet('yellow_tripdata_2023-01.parquet').to_json('yellow_tripdata_2023-01.jsonl', orient='records', lines=True)"
To build it locally, download the data and convert it to jsonl
:
cd workspace
# green tripdata
python3 -m pip install -r requirements.txt
# fetch data with .jsonl format
python3 fetch_jsonl.py
Then run the indexing process:
# for jsonl:
npm run build-index-jsonl
Copy the .jsonl
file to /client
cp green_tripdata_2023-01.jsonl ../client
Build the AppendableDB client library:
npm run build
Copy the Appendable library to /client
cp ../../dist/appendable.min.js ../client
cp ../../dist/appendable.min.js.map ../client
Then run the development server:
npm run client
You should see the example built on http://localhost:8080