Skip to content

Latest commit

 

History

History

rust-core

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rust Core

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.

Requirements

  • Rust >= 1.45
  • SQLite >= 3
  • Diesel CLI (More info here)

Setup

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

Specifications

Database model

Here's the Entity Relation model for the database.

Database Entity Relation Diagram