{"id":13724397,"url":"https://github.com/CMLPlatform/ramascene","last_synced_at":"2025-05-07T18:31:46.090Z","repository":{"id":39721558,"uuid":"197735023","full_name":"CMLPlatform/ramascene","owner":"CMLPlatform","description":"RaMa-Scene a web-platform to analyse Environmentally Extended Input-Output data and generate scenarios","archived":false,"fork":false,"pushed_at":"2023-02-24T10:55:24.000Z","size":99953,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T20:56:04.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.ramascene.eu/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CMLPlatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-19T08:33:50.000Z","updated_at":"2023-02-24T10:51:11.000Z","dependencies_parsed_at":"2023-09-21T19:44:06.666Z","dependency_job_id":null,"html_url":"https://github.com/CMLPlatform/ramascene","commit_stats":{"total_commits":309,"total_committers":7,"mean_commits":"44.142857142857146","dds":"0.42071197411003236","last_synced_commit":"0fe501457443371d24f07f1a05998e2b6107dee5"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMLPlatform%2Framascene","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMLPlatform%2Framascene/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMLPlatform%2Framascene/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMLPlatform%2Framascene/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CMLPlatform","download_url":"https://codeload.github.com/CMLPlatform/ramascene/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250421888,"owners_count":21427850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:01:56.446Z","updated_at":"2025-05-07T18:31:46.034Z","avatar_url":"https://github.com/CMLPlatform.png","language":"SCSS","funding_links":[],"categories":["Industrial Ecology"],"sub_categories":["Input Output Model"],"readme":"# RaMa-Scene\n---\nRaMa-Scene is a django 2.0 based web-application that allows for analyzing Environmentally Extended Input-Output (EEIO) tables. EXIOBASE v3.3 is used in this project. \nDemo version: http://cml.liacs.nl:8080/ramascene/\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](resources/docs/CONTRIBUTING.md)\n\n# Developers Guide\n---\nhttp://rama-scene.readthedocs.io/en/latest/\n\n# Getting started\n---\n### Retrieve the raw datasets\n\n \nEXIOBASE-Rama-Scene (modified version including secondary materials): \n\nhttp://doi.org/10.5281/zenodo.3533196\n\n### Clone the project \n``` \ngit clone https://bitbucket.org/CML-IE/rama-scene.git\n```\n\n### Create a virtual environment (python3.5 or higher) and install the app requirements (make sure you have python-dev installed via apt-get)\n``` \n$ pip3 install -r requirements.txt \n```\n\n### Install node.js (node version: 3.10.10 or higher)\n``` \n$ sudo apt-get update\n$ sudo apt-get install nodejs\n```\n\u003e Note: On debian apt install nodejs-legacy\n\n### Install redis (for Django Channels)\n```\n$ sudo apt install redis-server\n```\n\n### Install rabbitMQ (for Celery)\n\n``$ sudo apt-get install -y erlang``\n\n``$ sudo apt-get install rabbitmq-server``\n\nThen enable and start the RabbitMQ service:\n\n``$ systemctl enable rabbitmq-server``\n\n``$ systemctl start rabbitmq-server``\n\nCheck the status to make sure everything is running:\n``$ systemctl status rabbitmq-server``\n\n\n\u003e Note: Perform all next steps in the virtualenv and in the rootfolder of the project\n\n### Set the following environment variables (see sample-dev-env.sh):\n```\nexport DJANGO_SETTINGS_MODULE=ramasceneMasterProject.config.dev\nexport DATASETS_VERSION=version downloaded e.g. v3\nexport DATASETS_DIR=my/path/to/datasets\nexport OPENBLAS_NUM_THREADS=adjust according to how many cores you want to use\n```\nIf you are on Linux and using the OpenBlas library for Numpy. \nIt is advised to set the number of threads Numpy uses. To find which library is used in python:\n```\n\u003e\u003e\u003eimport numpy as np\n\u003e\u003e\u003enp.__config__.show()\n```\n\n\n### Prepare the database\n```\n$ python3 manage.py makemigrations\n$ python3 manage.py migrate\n```\n\n### Populate the database \n```\n$ python3 manage.py populateHierarchies\n```\n\n### Prepare static resources\n```\n$ npm install\n```\n\n### Built React bundle\n```\n$ ./node_modules/.bin/webpack --config dev-webpack.config.js \n```\n\n### Start Celery\nStart the default module to enable handling of analytical calculations:\n```\n$ celery -A ramasceneMasterProject worker -l info  --concurrency 1 --queue calc_default -n worker1.%h\n```\nStart the modelling module to enable handling of modelling calculations:\n```\n$ celery -A ramasceneMasterProject worker -l info  --concurrency 1 --queue modelling -n worker2.%h\n```\n\n### Start the development server\n```\n$ python3 manage.py runserver\n```\n\nAccess the app via the webrowser: http://127.0.0.1:8000/ramascene/\n\n### [Optional] enable debug logging\n\nTo enable debug logging, open the ramasceneMasterProject/config/dev.py file.\nUncomment the \"logging for Django\" section.\n\n### [Optional] run tests\nIn case you want to run tests you can perform unit tests in the root folder:\n```\n$ python3 manage.py test -v2\n```\n\nFor integration tests you need to start the celery workers first (explained above). \nYou can perform the integration test with the following command:\n```\n$ pytest -vs\n```\n\nIf the test has succeeded, you�ll need to repopulate the database with the following command:\n```\n$ python3 manage.py populateHierarchies\n```\n\n### Core dependencies\n---\nThe app uses Celery [4.1.0] (http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html), Django channels [2.1.5] (https://channels.readthedocs.io/en/latest/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCMLPlatform%2Framascene","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCMLPlatform%2Framascene","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCMLPlatform%2Framascene/lists"}