This is the base code that can be reused in the Add-On and WebAssembly implementation. It has the details for the database & basic utilities that can be reused across projects.
- Rust >= 1.45
- SQLite >= 3
- Diesel CLI (More info here)
Duplicate the .env.example
file and name it .env
. It contains the environment variables needed
to run the project. Then un-compress data.zip
and place it in the current directory. Make sure
that there's no nested path in the uncompressed path and the .csv
files are in the top-most
directory of data
.
For Linux an Mac OSX
./scripts/init.sh
For Windows
.\scripts\init.bat
Here's the Entity Relation model for the database.