This template sets up a full-stack application with:
- Azle Backend: A simple Hello World canister.
- React Frontend: A React app that interacts with the Azle backend.
1.Clone the repository:
#fork this repo
git clone <link-of-the-forked-repo>.git
cd azle-starter2.Run the setup script:
./setup.sh3.Go to the backend directory in your project and start the canister:
cd name-of-your-project-dir/backend
dfx start --clean --background
dfx deploy4.Edit your canister id in App.jsx
const canisterId = Principal.fromText("your-canister-id"); // Replace with actual canister ID
//use the canister id you given after running dfx deploy on the backend dir5.Go to the frontend directory and start the React app:
cd frontend
npm run dev