Getting up and running with a multi-canister CanDB Backend project
- First, clone this repo
- Every CanDB project must have an Index Canister. To create one, inside the cloned repo run
npm run generate
and select "Create CanDB IndexCanister Actor Canister From Template", then continue through the prompts. You should now see asrc/index/IndexCanister.mo
file. - The Index Canister will help facilitate the spin-up and creation of canisters from a CanDB Actor. To create the bare minimum Actor that will work with CanDB, run
npm run generate
again, and then select "Create CanDB Actor Canister From Template". Fill in the{{actor_class_name}}
of your actor, for exampleUser
,Player
, orGame
, and then continue through the prompts. You should now see asrc/{{actor_class_name}}/{{actor_class_name}}.mo
file.
TODO:
- Next steps, example Hello World project & more complicated examples, etc.
- Decide whether this should go in the root CanDB package or be in a separate quickstart package like this (i.e. create-react-app style)