Skip to content

Run nutritional reports against a product database

Notifications You must be signed in to change notification settings

DemonusPC/burnreport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Burn Report

Burn report is a web app that allows you to find out how many calories and other nutrients you have consumed. It is essentially a product database that allows you to run reports against it.

I basically rewriten my excel spreadsheet in Rust and React.

Local Development

git clone git@github.com:DemonusPC/burnreport.git

For the backend

cargo run

To develop on the front end start up the server and then in a separate terminal

cd frontend
npm install
npm run dev

Release build

If you want to produce a binary just do

cargo build --release

You also need to build the frontend

cd frontend && npm run build

Then you can place the output whereever you want, assuming that the frontend is placed relatively to the binary like so:

/dir
  /frontend
    /build
  burnreport (binary)

To run it

DATABASE_URL=<valid sqlite path>

A valid sqlite path looks like this:

DATABASE_URL=sqlite:///path/to/database.db

If this is the first time you are running the app, the database should be automatically initialized and the tables created.

About

Run nutritional reports against a product database

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages