Skip to content

bcakmakoglu/contentful-vite-starter

Repository files navigation

Vite Contentful App Template

Build a Contentful App using Vite. 🍟

top-language dependencies Status devDependencies Status vulnerabilities GitHub code size in bytes GitHub last commit

🪄 Features

React TypeScript Vite ESLint

🛠 Setup

# create a new project
$ npx degit bcakmakoglu/contentful-vite-starter my-app
# or just clone the repo
$ git clone https://github.com/bcakmakoglu/contentful-vite-starter.git my-app

# you're free to use the package manager of your choosing
$ pnpm install

🧪 Development

After setting up your Contentful App config on the Contentful Web Application, you can start development. For instructions on setting up the App check the documentation.

# start (dev)
$ pnpm dev

# build app
$ pnpm build

# serve app from dist dir
$ pnpm serve

# upload dist dir to contentful
$ pnpm upload