Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.27 KB

README.org

File metadata and controls

32 lines (22 loc) · 1.27 KB

ReCircE - Block Tool

The ReCircE Block-Tool calculates recycling rates and CO2 footprints of waste treatment scenarios of complex products. It is a web-application that was developed in the ReCircE project.

Building from source

The tool is a React application with a back-end written in Go. Thus, in order to build the tool from source you need to have a current version of Node and Go installed. The front-end can be compiled like this (npx webpack watch during development):

npm install
npx webpack  # watch

This will produce the artifacts for the user interface in the static folder. The back-end can be build like this:

cd server && \
    go build -o ../app && \
    cd ..

The server can be then simply started like this:

./app

This will create a database in the data folder and start the application at port 8080 serving the files from the static folder. Navigating your browser to http://localhost:8080 should bring you to the tool then. You can also specify alternative settings for the tool like this:

./app -data DATA_DIR -static WEB_DIR -port PORT