NervaAPI is a RESTful API server for the Nerva blockchain. It provides a simple interface to interact with the Nerva blockchain using HTTP requests.
- Git
- Python >= 3.10
- MongoDB database-
uvpackage manager - make (optional)
-
Clone the repository
git clone https://github.com/Sn1F3rt/NervaAPI.git
-
Switch to the project directory
cd NervaAPI -
Create a virtual environment
uv venv # or make env -
Install dependencies
uv sync --all-extras --no-dev # or make install
Copy the config.example.py file to config.py and update the variables.
uv run launcher.py # or make runThe API server will be running at http://localhost:5000.
uv run hypercorn --bind 0.0.0.0:17568 launcher:app # or make run-prodor if you want to enable SSL support
uv run hypercorn --certfile cert.pem --keyfile key.pem --bind 0.0.0.0:17568 launcher:app # or make run-prod-sslThe API server will be running at http://localhost:17568. The certificate and key files are required for SSL support.
Copyright © 2024-present Sayan "sn1f3rt" Bhattacharyya, The Nerva Project