This project consist of a monorepo with components required for the implementation of DeRisk on Starknet. There are several components in this repository, each with its own purpose and functionality. The main components are:
data_handler- Data processing and analysis componentweb_app- Main web application interfacelegacy_app- Legacy application functionalitydashboard_app- Analytics dashboardshared- Common code shared between the components
- Docker installed on your machine (v19.03+ recommended).
- Docker Compose installed (v2.0+ recommended).
The data handler component processes and manages data for the DeRisk platform.
-
To set up this project run next command for local development in
derisk-researchdirectory: -
Environment Configuration:
cp apps/data_handler/.env.example apps/data_handler/.env.dev- Start the Services:
docker-compose -f devops/dev/docker-compose.data-handler.yaml up --build- Stop the Services:
docker-compose -f devops/dev/docker-compose.data-handler.yaml down- To run test cases for this project run next command in
derisk-researchdirectory:
make test_data_handlerFor detailed documentation, see the Data Handler
The legacy app provides essential functionality for data visualization and analysis through a Streamlit interface.
- To set up this project run next command for local development in
derisk-researchdirectory:
make setup- To run streamlit app run next command in
derisk-researchdirectory:
make app- Start Jupyter notebook (optional):
make notebookFor detailed documentation, see legacy_app
To set up this project run next command for local development in derisk-research directory:
- Environment Configuration:
cp apps/web_app/.env.example apps/web_app/.env.dev- Start the Services:
docker-compose -f devops/dev/docker-compose.notification-app.yaml up --build- Stop the Services:
docker-compose -f devops/dev/docker-compose.notification-app.yaml downInteractive dashboard application for visualizing and analyzing DeRisk data.
- Interactive data visualization
- Protocol statistics monitoring
- Loan portfolio analysis
- Real-time data updates For detailed documentation, see the Dashboard App
- How to run test cases for shared package, run next command in root folder:
make test_shared-
Naviagte to frontend_dashboard directory:
cd apps/frontend_dashboard -
Build the Docker Image:
docker build -t frontend_dashboard .or on linux
sudo docker build -t frontend_dashboard . -
Run the Docker Container::
docker run -p 5173:5173 frontend_dashboard
or on linux
sudo docker run -p 5173:5173 frontend_dashboard
-
Access the Application: Open your browser and navigate to
http://localhost:5173.