Start with an example

Start with an example ArkEnv project.

Edit on GitHub

Use the interactive CLI to bootstrap an example with your favorite tooling:

npx arkenv init --example <example-name>
pnpm dlx arkenv init --example <example-name>
yarn dlx arkenv init --example <example-name>
bunx arkenv init --example <example-name>

Run it in an empty directory, or pass --force to overwrite.

For a repo that already has application code, skip --example and follow Installation.

Examples

The following examples can be bootstrapped with the CLI. Just use the --example <example-name> flag with the corresponding name.

For a more manual approach, you can clone an example and run it locally using degit:

npx degit yamcodes/arkenv/examples/<example-name> <project-name>
cd <project-name>
cp .env.example .env
npm install
npm run dev
pnpm dlx degit yamcodes/arkenv/examples/<example-name> <project-name>
cd <project-name>
cp .env.example .env
pnpm install
pnpm run dev
yarn dlx degit yamcodes/arkenv/examples/<example-name> <project-name>
cd <project-name>
cp .env.example .env
yarn install
yarn dev
bunx degit yamcodes/arkenv/examples/<example-name> <project-name>
cd <project-name>
cp .env.example .env
bun install
bun run dev