Basic Usage Example
Here are some examples of common usage scenarios:
Last updated
Here are some examples of common usage scenarios:
Last updated
To create a new project, run this command
You should see something like this
Replace mydapp with the desired name of your project. This command will prompt you to select a template and configure the project settings.
View available command-line options and flags by running
To setup your backend here are the required steps:
Navigate to the backend directory of your created project and run the below command, keep in mind also ensure your docker is all setup up and running.
Install all required dependencies using either yarn install
or npm i
To build and run the backend ensure that you have Cartesi CLI is installed and your docker is up and running. For debugging purpose, you can run cartesi doctor.
Build the project by running the below command;
This will help build the image and run the Cartesi machine. Once this step is completed you should see something like this
The next step will be to start the local backend server by running
If all goes well you should see this
For quick troubleshooting incase you run into any issue you can quickly check the status using
This will start the development server
If you are working on the frontend, here are the required steps:
Navigate into the frontend project directory
Install all required dependencies using either npm i
or yarn install
Once you generate the frontend template, ensure to create a .env
file and provide your project Id as it's an important requirement when working with Rainbowkit and Wagmi.
Your .env
file should look like this 👇 on the nextjs template
If using the react-app template your .env
file should look like this 👇 on the nextjs template
Start up the local server using the below command.
A detailed setup guide can be found in the readme of the individual selected template.