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.
- Rust
- Internet Computer SDK
- IC CDK
-
Clone the repository:
git clone https://github.com/foryouflowerai/e-ticketer-ICP.git cd e-ticketer-ICP
For more information, see the following resources:
- Quick Start
- SDK Developer Tools
- Rust Canister Development Guide
- ic-cdk
- ic-cdk-macros
- Candid Introduction
- JavaScript API Reference
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.
If hosting frontend code without DFX, adjust the environment to prevent fetching the root key in production:
- Set
DFX_NETWORK
toproduction
if using Webpack. - Replace
process.env.DFX_NETWORK
in autogenerated declarations with your method. - Set
canisters -> {asset_canister_id} -> declarations -> env_override
indfx.json
to replaceprocess.env.DFX_NETWORK
. - Write a custom
createActor
constructor.