Inspired by the Ethereum Project. Under development - In fact, just started.
- Java 8
- Maven
- Fork this repository
- Clone from your repository
git clone https://github.com/YourUserName/carbc.git
- Go into the cloned directory
cd carbc
- Add your repository as the
origin
git remote add origin https://github.com/YourUserName/carbc.git
- Add this repository as the
upstream
git remote add upstream https://github.com/SuKSW/carbc.git
- Make changes as you wish
- After making the changes: add, commit and push them to your repository.
git add <file_one> <file_two>
git commit -m "the changes you made"
git push origin master
- Fetch all the new changes from https://github.com/SuKSW/carbc.git which will have changes merged from other members' repositories as well.
git fetch upstream
- Make sure you are in the master branch
git checkout master
- Rebase your master branch. This will apply all the changes you made, on top of the existing version of the upstream branch.
git rebase upstream/master
- Send everything to your GitHub repository
git push origin master
- Go to GitHub and create a pull request. That's all.
All the commands below assumes that you are within the directory carbc
.
Easiest wat to test the inner components. Just create a class like TestPeer
in src/main/java
add a main method, right click on the main method and click run.
Note: Yet this method will not work when testing the cli
The Main method set for the jar, is the one in src/main/java/Carbc
. The class that will be invoking the cli.
- Clean and build the jar
mvn clean install
- Run the jar
java -jar target/carbc-0.0.1-jar-with-dependencies.jar --help
If you didn't like this long troublesome command, try running using the linux script.
- Give execution permissions to the script
carbc.sh
(check the content of this file just in case, before continuing)- Right click on the script, select properties
- Open the permissions tab
- Allow executing file as a program
- Run the script
./carbc.sh --help
This will only print the help message for now.
- Clean and build the jar
mvn clean install
- Create and run the image
docker build -f Dockerfile -t carbcimage .
docker run -p 8080:8080 -t carbcimage