diff --git a/sn_node/README.md b/sn_node/README.md index bcad7d885f..ec8042e10d 100644 --- a/sn_node/README.md +++ b/sn_node/README.md @@ -1,3 +1,57 @@ -# sn_node +Safe Network Node (sn_node) -Provides the `safenode` binary, the node implementation for Safe Network. +Overview + +The sn_node directory provides the safenode binary, which is the node implementation for the Safe Network. This directory contains the core logic for node operations, including API definitions, error handling, event management, and data validation. + +Table of Contents + +Overview +Installation +Usage +Directory Structure +Testing +Contributing +Conventional Commits +License +Installation + +Follow the main project's installation guide to set up the safenode binary. + +Usage + +To run the safenode binary, follow the instructions in the main project's usage guide. + +Directory Structure + +src/: Source code files +api.rs: API definitions +error.rs: Error types and handling +event.rs: Event-related logic +get_validation.rs: Validation for GET requests +put_validation.rs: Validation for PUT requests +replication.rs: Data replication logic +spends.rs: Logic related to spending tokens or resources +tests/: Test files +common/mod.rs: Common utilities for tests +data_with_churn.rs: Tests related to data with churn +sequential_transfers.rs: Tests for sequential data transfers +storage_payments.rs: Tests related to storage payments +verify_data_location.rs: Tests for verifying data locations +Testing + +To run tests, navigate to the sn_node directory and execute: + +`cargo test` + +Contributing + +Please feel free to clone and provide pull requests. + +Conventional Commits + +We follow the Conventional Commits specification for all commits. Make sure your commit messages adhere to this standard. + +License + +This project is licensed under the MIT License.