Skip to content

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 -v

Create a new project

  1. The simplest way to create a new Crelte project is to run npx crelte-cli create.
  2. Enter email address, username and password (you will need this to login into the CMS later).
  3. For the site name we will use Tutorial.
  4. In this example we use en-US as our language.
  5. crelte-cli will now initialize the project; this might take a minute.
  6. After the project is created, you can start the frotend.
  7. cd tutorial/svelte && npm run dev

At this point you should be able to access the project at http://localhost:8080.