Create Effect App
The create-effect-app
CLI allow you to create a new Effect application using a default template or an example from a public Github repository.
It is the easiest way to get started with Effect.
To begin, run the create-effect-app
command in your terminal using your preferred package manager:
This command starts an interactive setup that guides you through the steps required to bootstrap your project:
After making your selections, create-effect-app
will generate your new Effect project and configure it based on your choices.
Example
For instance, to create a new Effect project in a directory named "my-effect-app"
using the basic template with ESLint integration, you can run:
If you prefer, create-effect-app
can also be used in a non-interactive mode:
Below is a breakdown of the available options to customize an Effect project template:
Option | Description |
---|---|
--changesets | Initializes your project with the Changesets package for managing version control. |
--flake | Initializes your project with a Nix flake for managing system dependencies. |
--eslint | Includes ESLint for code formatting and linting. |
--workflows | Sets up Effect’s recommended GitHub Action workflows for automation. |