Code Monkey home page Code Monkey logo

ensiasea's Introduction

Welcome To EnsiaSea

Introduction

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.

How to Setup The Project in ubuntu / Wsl2

  • Install all the dependencies

    1. Make sure to update the system

      • sudo apt-get update
        
    2. Install git & curl

      •   sudo apt install curl git
        
    3. Install Nodejs & npm

      1. curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
        
      2. sudo apt install nodejs
        
      3. sudo apt install build-essential
        
    4. Install docker & docker-compose

      Ps : if you have any problem with one of the following commands, check the documentation

      1. sudo apt-get install ca-certificates gnupg lsb-release
        
      2. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
        
      3.  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
        
      4. sudo apt-get update
        
      5. sudo apt-get install docker-ce docker-ce-cli containerd.io
        
      6. sudo apt-get install docker-compose
        
    5. Starting docker service

      1. Using Ubuntu :

        1. sudo systemctl start docker
          
        2. sudo systemctl enable docker
          
      2. Using Wsl2 :

        1. sudo git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
          
        2. cd ubuntu-wsl2-systemd-script/
          
        3. bash ubuntu-wsl2-systemd-script.sh
          

          Ps : Make sure to restart the ubuntu shell by doing this :

          1. Open Windows PowerShell

          2. Enter this command :

            wsl --shutdown
            
          3. Open a new ubuntu shell and continue

        4. sudo systemctl start docker
          
        5. sudo systemctl enable docker
          
  • Setting up the project structure / files

    1. Clone the repo

      • git clone https://github.com/RedRosh/EnsiaSea.git
        
    2. Install Samples, Binaries, and Docker Images

      1. cd EnsiaSea
        
      2. sudo curl -sSL https://bit.ly/2ysbOFE | sudo bash -s
        
    3. Changing permission of the folder fabric-samples

      1. sudo su
        
      2.  chmod -R 777 ./fabric-samples
        
      3.  chmod -R 777 .
        

        Ps : If you could not copy/remove a file , make sure to verify your permission .

    4. Extract the folders that we need to use from fabric-samples

      • ./bp.sh
        
        Ps : bp stands for build project .
    5. Create the network & setup the blockchain & launch blockchain explorer / server

      • ./cyfn.sh
        
        Ps : blockchain explorer is running on port 8080 & server running on port 5000
    6. 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 .

    7. YOU ARE READY TO GO

  • Testing if the blockchain is up using blockchain explorer

    Link : localhost

    Ps : Password = admin / username = admin

TODO

  • - 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 .

Ressources

ensiasea's People

Contributors

redrosh avatar soufianjrf avatar

Stargazers

AADEL Abdelhalim avatar AHMED HAFDI avatar Othmane Douida avatar Adnane Aabbar avatar OUDOUN Mohamed avatar Zin Eddine Lamziouik avatar Othmane EL KARMY avatar Soumya Kaddouri  avatar  avatar

Watchers

 avatar

Forkers

hbaocr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.