Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greendelta/recirce-block-tool
https://github.com/greendelta/recirce-block-tool
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/greendelta/recirce-block-tool
- Owner: GreenDelta
- License: mpl-2.0
- Created: 2023-09-05T09:37:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-04T10:02:24.000Z (about 1 year ago)
- Last Synced: 2024-06-11T16:19:48.957Z (7 months ago)
- Language: TypeScript
- Size: 293 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+title: 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 [[https://www.recirce.de/][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):
#+begin_src shell :results output
npm install
npx webpack # watch
#+end_srcThis will produce the artifacts for the user interface in the =static= folder. The back-end can be build like this:
#+begin_src shell :results none
cd server && \
go build -o ../app && \
cd ..
#+end_srcThe server can be then simply started like this:
#+begin_src shell :results none
./app
#+end_srcThis 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][http://localhost:8080]] should bring you to the tool then. You can also specify alternative settings for the tool like this:
#+begin_src shell
./app -data DATA_DIR -static WEB_DIR -port PORT
#+end_src