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.8
- MongoDB database
- make (optional)
-
Install
uv
> https://docs.astral.sh/uv/getting-started/installation/ -
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 --no-dev # or make install
Copy the config.example.py
file to config.py
and update the variables.
uv run launcher.py # or make dev
The API server will be running at http://localhost:8000
.
source .venv/bin/activate # or make activate
hypercorn --bind 0.0.0.0:8000 launcher:app
or if you want to enable SSL support
source .venv/bin/activate # or make activate
hypercorn --certfile cert.pem --keyfile key.pem --bind 0.0.0.0:8000 launcher:app
The API server will be running at http://localhost:8000
. The certificate and key files are required for SSL support.
GNU General Public License v3.0
Copyright © 2024 Sayan "Sn1F3rt" Bhattacharyya, The Nerva Project