Giter Site home page Giter Site logo

ticket-management-rust's Introduction

Ticket-Management-Rust

Overview

Ticket-Management-Rust is a ticketing system built on smart contracts. It enables efficient management of events, users, and tickets by utilizing stable data structures and Candid serialization, ensuring compatibility with the Internet Computer framework. The system provides comprehensive support for CRUD operations and relationship management.

Prerequisites

  • Rust
  • Internet Computer SDK
  • IC CDK

Installation

  1. Clone the repository:

    git clone https://github.com/foryouflowerai/e-ticketer-ICP.git
    cd e-ticketer-ICP

Documentation

For more information, see the following resources:

Running the Project Locally

To test your project locally, use the following commands:

# Start the replica in the background
dfx start --background

# Deploy your canisters to the replica and generate your Candid interface
dfx deploy

After deployment, access your application at http://localhost:4943?canisterId={asset_canister_id}.

To generate a new Candid interface after backend changes, run:

npm run generate

To start the frontend development server:

npm start

This will start a server at http://localhost:8080, proxying API requests to the replica at port 4943.

Frontend Environment Variables

If hosting frontend code without DFX, adjust the environment to prevent fetching the root key in production:

  • Set DFX_NETWORK to production if using Webpack.
  • Replace process.env.DFX_NETWORK in autogenerated declarations with your method.
  • Set canisters -> {asset_canister_id} -> declarations -> env_override in dfx.json to replace process.env.DFX_NETWORK.
  • Write a custom createActor constructor.

ticket-management-rust's People

Contributors

riskiraj avatar coolestnick avatar

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.