Website of the Splitter Orchester from Berlin built with React, Next.js, TailwindCSS, TypeScript and Sanity Studio Headless CMS.
- NodeJS 14 or higher
- yarn
- Sanity Account for Headless CMS
- Vercel Account for deployment (recommended)
# Install dependencies
yarn
# Run development servers concurrently. Open localhost:3000 for website,
# localhost:3333 for Sanity CMS backend
yarn start
# Check linter errors
yarn lint
# Helper script to generate TypeScript definitions from Sanity schema
yarn sanity:types
-
Run
yarn vercel
to initialize and deploy the project, you can alternatively do this through the Vercel web dashboard. -
After setup you can run the following (optional) commands for deployment:
# Deploy page on Vercel (optional) yarn vercel yarn vercel:production
Build and export all files which can be directly used for any static page hosting (without Vercel):
# Build Next.js and Sanity project
yarn build
# Exports static files to `out` folder (required step)
yarn next:export