Next.js + GraphQL + Typescript frontend credit card app.
git clone ...
npm install
cp .env_example .env
- Edit
.env
- Database workflow
npm run dev
npm run gen
npm run dev
Production build:
npm run build
npm start
-
Change schema:
prisma/schema.prisma
-
Create migration:
npm run prisma:create
-
Deploy migration to database:
npm run prisma:deploy
Run npm run gen
after every GraphQL API Schema changed or after ./graphql/*.graphql
files are modified
Build info page available at /_info
: http://localhost:3000/_info