-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
# Basic Blockchain using Golang ! | ||
# Basic Blockchain with Golang | ||
|
||
### TODOs | ||
### TODOs : | ||
- [x] **Networking**. | ||
- [ ] **Proof of Work**. | ||
- [ ] **Proof of Stake**. | ||
- [ ] **Peer-to-Peer**. | ||
|
||
### Deployement | ||
### Deployement : | ||
- Download *main.go* , and *ports.env*. | ||
- Rename ports.env to .env using "mv ports.env .env". | ||
- Open a web browser and `http://localhost:8080/` (8080 is the port I wrote in .env file). | ||
- To Add a new Block you can use curl to send a `POST` request to `http://localhost:8080` . | ||
|
||
**Example** : `curl -i -X POST -H 'Content-Type: application/json' -d '{"BPM":50}' http://localhost:8080` | ||
|
||
### Screenshots | ||
### Screenshots : | ||
|
||
#### Screenshot of POST request using "CURL" | ||
|
||
*Screenshot of POST request using curl* | ||
![Screen1](https://user-images.githubusercontent.com/60072763/163896882-2ff5bb40-bbce-4763-a02d-c9bd5f7b9c1a.PNG) | ||
|
||
*Screenshot of Blocks* | ||
#### Screenshot of Blocks | ||
|
||
![Screen2](https://user-images.githubusercontent.com/60072763/163896916-c2483bc3-5cfc-4fc1-bfaf-faf8bc34a4e8.PNG) |