EnsiaSea is a project built (or still in the buidling phase) by second year Software Engineering students from ENSIAS. As you can see from its name, it has combined the two words ENSIAS and SEA, this combination was based on the website OpenSea, and if you can't guess yet, the goal of this project is to build a blockchain website for ENSIAS students to sell, buy, and exchange NTFs (Non Fungible Tokens). To make this project come true, it was devided into 3 parts: The blockchain network, the back-end, and the front-end of the website. This repository is the main one, and it contains the blockchain part of the project.
-
-
Make sure to update the system
-
sudo apt-get update
-
-
Install git & curl
-
sudo apt install curl git
-
-
Install Nodejs & npm
-
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
-
sudo apt install nodejs
-
sudo apt install build-essential
-
-
Install docker & docker-compose
Ps : if you have any problem with one of the following commands, check the documentation
-
sudo apt-get install ca-certificates gnupg lsb-release
-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-
echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-
sudo apt-get update
-
sudo apt-get install docker-ce docker-ce-cli containerd.io
-
sudo apt-get install docker-compose
-
-
Starting docker service
-
Using Ubuntu :
-
sudo systemctl start docker
-
sudo systemctl enable docker
-
-
Using Wsl2 :
-
sudo git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
-
cd ubuntu-wsl2-systemd-script/
-
bash ubuntu-wsl2-systemd-script.sh
Ps : Make sure to restart the ubuntu shell by doing this :
-
Open Windows PowerShell
-
Enter this command :
wsl --shutdown
-
Open a new ubuntu shell and continue
-
-
sudo systemctl start docker
-
sudo systemctl enable docker
-
-
-
-
-
Clone the repo
-
git clone https://github.com/RedRosh/EnsiaSea.git
-
-
Install Samples, Binaries, and Docker Images
-
cd EnsiaSea
-
sudo curl -sSL https://bit.ly/2ysbOFE | sudo bash -s
-
-
Changing permission of the folder fabric-samples
-
sudo su
-
chmod -R 777 ./fabric-samples
-
chmod -R 777 .
Ps : If you could not copy/remove a file , make sure to verify your permission .
-
-
Extract the folders that we need to use from fabric-samples
-
Ps : bp stands for build project .
./bp.sh
-
-
Create the network & setup the blockchain & launch blockchain explorer / server
-
Ps : blockchain explorer is running on port 8080 & server running on port 5000
./cyfn.sh
-
-
Creating Admin / User / connect the hyperledger Application to blockchain
-
Open new terminal - run the following code :
-
./cad.sh
-
Ps : You can check the server , you ll see logs of the requests .
-
-
YOU ARE READY TO GO
-
-
Link : localhost
Ps : Password = admin / username = admin
- - Setup blockchain .
- - create an api in order communicate with blockchain .
- - structure of database .
- - create back-end of EnsiaSea ( In Progress ) .
- - create front-end of EnsiaSea .
- Installing Node js : Click Here
- Installing Docker : Click Here
- Starting systemd in WSL : Click Here
- Hypderledger doc : Click Here