A simple command line tool to quickly create projects for the Internet Computer.
Note that you will need to use npm 6 or higher.
npm init ic
An optional project name can also be passed to the command line:
npm init ic myproject
Tips: if you do not get the last version of the cli, provide @latest
to the command line:
npm init ic@latest
This npm initializer is basically a shorthand to dfx - the command-line interface for managing Internet Computer projects.
- It first checks if dfx is installed in your environment. If not, it prompts you to install it
- If already installed, the script checks if a newer version of dfx is available and prompts you if you want to upgrade
- Request a new project name
- Ask what kind of project should be initialized - i.e. frontend (web application) + backend or backend only
- Let you pick the type of backend canister that should be created (Motoko or Rust)
- If a frontend web application should be created, it also asks you if an authentication (Internet Identity) should be added to the project
- Initialize the new project
It does not support yet Windows and might also not work behind a proxy.
MIT © David Dal Busco