Backend
The backend stores all the user/project info.
Frontend
Built using Next.js
https://kn5ky-6iaaa-aaaai-qbikq-cai.ic0.app/
Install:
- NodeJS 14.* or higher https://nodejs.org/en/download/
- Internet Computer dfx CLI https://sdk.dfinity.org/docs/quickstart/local-quickstart.html
- Visual Studio Code (Recommended Code Editor) https://code.visualstudio.com/Download
- VSCode extension - Motoko (Recommended) https://marketplace.visualstudio.com/items?itemName=dfinity-foundation.vscode-motoko
sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
Clone this Git repository:
git clone https://github.com/CrowdFund-NFT/crowdfund-nft
Open command terminal: Enter the commands to start dfx local server:
cd crowdfund-nft
dfx start --clean
Note: If you run it in MacOS, you may be asked allow connections from dfx local server.
In a new terminal window, enter the commands to install dependencies, deploy canister and run Next.js dev server:
npm install
dfx deploy
npm run dev
Open in Chrome the following URL to try the demo app:
http://localhost:3000/
Cleanup - stop dfx server running in background:
dfx stop
Internet Computer has the concept of Canister which is a computation unit. This project has 2 canisters:
- backend
- frontend
Canister configuration are stored in dfx.json.
There 2 sets of Canister on the IC (production and staging)
dfx deploy --network staging
dfx deploy --network production