GraphQL TypeScript boilerplate
- Login into prisma using
npx prisma login
- Create an
.env
file in the project root (copy from .env.example file) - Add your prisma endpoint in the .env file
- Run
yarn
(recommended) ornpm install
yarn dev
ornpm run dev
yarn build
ornpm run build
- Deploy the dist folder to the hosting server of your choice
- Run
yarn start
ornpm start
to start the server
Note: To run the migrations (changes made to datamodel.prisma
) run yarn p:deploy
or npm run p:deploy