ahdrahees / Car-Bazar-Dapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Car Bazar Application

Introducing Car-Bazar, a dynamic TypeScript web application poised to transform car management and discovery. Our innovative project offers users the ability to effortlessly execute CRUD (Create, Read, Update, Delete) operations on cars, streamlining the entire process. Additionally, Car-Bazar goes beyond conventional platforms by delivering personalized car recommendations tailored to individual user preferences. Experience the future of car management with Car-Bazar, where efficiency meets personalization for an unparalleled user experience.

How to deploy canisters

  • Start the Local Internet Computer

    dfx start --background --clean
  • Deploy the Ledger Canister

    npm run deploy-ledger
  • Deploy the Internet Identity Canister

    npm run deploy-identity
  • Deploy the Backend Canister

    # run with dfx and set the registrationFee in e8s
    
    dfx deploy dfinity_js_backend --argument '(record {registrationFee <amount in e8s> })'
    
    # or run using npm with preset values
    # registraionFee = 2_0000_0000 i.e 2 ICP tokens
    sudo apt update
    npm run deploy-backend
    
  • Deploy the Frontend Canister

    npm run deploy-frontend
  • Run Frontend Locally

    npm run start

Minting Tokens to your account

This next step shows how to mint icp tokens from the locally deployed Ledger canister.

  • Copy your dfx address from the wallet on the doc reg frontend.

    gettokens

  • Run the mint script.

    # npm run mint:tokens <amount in e8s> <dfx address>
    npm run mint:tokens 5000_0000_0000 4eecc7740bf73f27f68c9f9703adbee7dc41dd1e1a5e316bbff039806550bd79
    
    # N/B: This mints 5000 ICP tokens from the locally deployed ledger to the address.

About


Languages

Language:JavaScript 65.1%Language:TypeScript 30.0%Language:Shell 2.6%Language:CSS 1.7%Language:HTML 0.6%