/contentful-vite-starter

A Contentful App template using Vite + React + Forma36.

Primary LanguageTypeScriptMIT LicenseMIT

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

  • ๐Ÿ›น Write components in React

  • ๐ŸŽจ Use the next generation utility-first CSS framework Windi CSS

  • โšก๏ธ Lightning fast development thanks to Vite 2!

  • โš™๏ธ APIs & Components Auto import

  • ๐Ÿ’ Enjoy a great dev experience with TypeScript

  • ๐Ÿ’ช Comes with ESLint & Prettier to help you write neat code

๐Ÿ›  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