dkeeper is a simple note-taking application built on the Internet Computer (ICP). This application allows users to create, read, and delete notes efficiently. The project uses Motoko for the backend and React with Vite for the frontend.
- Create Notes: Add new notes with a title and content.
- Read Notes: View all created notes.
- Delete Notes: Remove notes that are no longer needed.
- Decentralized Storage: Data is securely stored on the Internet Computer.
Before starting, ensure you have installed DFX and Node.js.
If you haven't already, clone this repository:
git clone https://github.com/triliun/dkeeper.git
cd dkeeperInstall the required dependencies for the project:
npm installStart the Internet Computer replica locally:
dfx start --backgroundDeploy the backend and frontend canisters to the local replica:
dfx deployOnce the deployment process is complete, the application will be available at:
http://localhost:4943?canisterId={asset_canister_id}
For frontend development, you can start the development server with:
npm startThe development server will run at http://localhost:3000.
To regenerate TypeScript/JavaScript declarations for the canister:
npm run generateTo stop the local replica:
dfx stopTo remove canisters and local cache:
dfx cleanIf you are hosting the frontend in a production environment without DFX, ensure the following environment variables are set:
- DFX_NETWORK: Set to
icfor production. - CANISTER_ID: Frontend and backend canister IDs.
You can also replace process.env.DFX_NETWORK in the generated declarations by adding the following configuration to dfx.json:
"canisters": {
"dkeeper_frontend": {
"declarations": {
"env_override": "ic"
}
}
}