Vite + GraphQL + Typescript frontend boilerplate.
One-liner:
npx degit uxname/litefront my-app && cd my-app && git init && git add . && git commit -m "Initial commit" && npm install && cp .env.example .env && npm run gen && npm run start:dev
Step by step:
npx degit uxname/litefront my-app
cd my-app
git init && git add . && git commit -m "Initial commit"
npm install
cp .env.example .env
- Edit
.env
npm run gen
npm run start:dev
Production build:
npm run build
npm start:prod
Run npm run gen
after every GraphQL API Schema changed or after ./graphql/*.graphql
files are modified