https://github.com/resilientapp/coinsensus-backend
https://github.com/resilientapp/coinsensus-backend
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/resilientapp/coinsensus-backend
- Owner: ResilientApp
- License: apache-2.0
- Created: 2024-11-04T00:44:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-02T05:46:47.000Z (about 1 year ago)
- Last Synced: 2025-07-10T19:27:06.972Z (12 months ago)
- Language: Python
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coinsensus
### Steps to run Coinsensus backend server:
Reference ResilientDB Blog - [Getting Started With ResVault](https://blog.resilientdb.com/2023/09/21/ResVault.html)
1. Run ResilientDB KV Service in the *incubator-resilientdb* repo with the following command:
`./service/tools/kv/server_tools/start_kv_service.sh`
2. Start the Crow HTTP Service in the *incubator-resilientdb-graphql* repo with the following command:
`bazel-bin/service/http_server/crow_service_main service/tools/config/interface/client.config service/http_server/server_config.config`
3. Within the virtual environment, start the Python SDK GraphQL Server in the *incubator-resilientdb-graphql* repo with the following command:
`python3 app.py`
4. Within the virtual environment, start the Coinsensus Backend Python FastAPI server with the following command in the *coinsensus-backend* repo:
`python3 app/main.py`
### APIs exposed:
- /api/users/createUser
- /api/users/login
- /api/users/getUser
- /api/users/addFriend
- /api/users/getFriends
- /api/transactions/createTransaction
- /api/transactions/getBalances
- /api/transactions/getTransactionHistory