Creating a project
Prerequisites
- You know how to use the terminal Guide
- You have ddev installed Guide
- You have node and npm installed, we recommend using a version manager like nvm or fnm
If the following commands each return a version number you are good to go:
bash
ddev -v
node -v
npm -vCreate a new project
- The simplest way to create a new Crelte project is to run
npx crelte-cli create. - The first question will be where you should the project be created. We will call it
tutorial. - Then enter an email, username and password (you will need this to login into Craft).
- For the site name we will use
Tutorial. - As language choose en-US.
- crelte-cli will now initialize the project this might take a minute.
- After the project is created, you can start the frotend.
cd tutorial/svelte && npm run dev
At this point you should be able to access the project at http://localhost:8080.