Skip to content

Airline Consortium for Ad-hoc, impromptu and emergency seat sales using ethereum blockchain

License

Notifications You must be signed in to change notification settings

socket-var/airline-consortium

Repository files navigation

Steps to run the project:

  • Download the latest binaries for Node.js and MongoDB.
  • Create a database in MongoDB and call it ask_db.
  • Add a database owner account using the following snippet:
db.createUser({
  user: "ask_admin",
  pwd: "your password here",
  roles: [{ role: "dbOwner", db: "ask_db" }],
  passwordDigestor: "server"
});
  • Install truffle using npm install -g truffle and install Ganache binary or CLI.

  • Start the ganache process using CLI or open Ganache GUI, this will start the ganache private network process.

  • Open a terminal and cd into the truffle-build directory and type truffle compile to compile the smart contract. Then type truffle migrate to deploy the smart contract on ganache.

  • Create a .env file in the root of the project. Add the following variables in the .env file:

    DB_URL="mongodb://<username>:<password>@localhost:27017/<db_name>"
    CONTRACT_ADDRESS="<contract address>"
    BC_HOST_URL="http://localhost:7545"
  • Go to the terminal cd into the project root and type npm install.

  • Once all the dependencies are installed type npm run dev-test-run

  • Open the browser and type http://localhost:8000

Screens:

Signup Page:

Passenger Signup:

Airline Signup:

Login Page:

User Landing Page:

Airline Landing Page:

Passenger Landing Page:

Passenger Purchases Page:

Airline pending requests page:

Airline sending request to other airline:

Airline sending response to passenger:

Transactions page:

About

Airline Consortium for Ad-hoc, impromptu and emergency seat sales using ethereum blockchain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published