Fullstack Boilerplate GraphQL. Made with React & Prisma + authentication & roles
Login | Signup |
---|---|
git clone https://github.com/alan345/naperg/
cd naperg
cd server
yarn
Prisma migrate
run:More info if needed: Prisma Migrate
npx prisma migrate dev
Pick a name for your first migration. Example “init”
> npx prisma migrate dev
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "dev.db" at "file:./dev.db"
SQLite database dev.db created at file:./dev.db
✔ Name of migration … init
The following migration(s) have been created and applied from new schema changes:
migrations/
└─ 20210227221806_init/
└─ migration.sql
✔ Generated Prisma Client (2.17.0) to ./node_modules/@prisma/client in 71ms
Everything is now in sync.
To reset your database if needed, use Prisma Reset.
More info if needed: Prisma Reset
npx prisma migrate reset
More info if needed: Prisma Seed
npx prisma db seed
A new user will be created from seed.ts
file.
[email protected]
admin
ADMIN
More info if needed: Prisma Studio
$ npx prisma studio
Prisma Client is an auto-generated database client that’s tailored to your database schema.
More info if needed: Prisma Generate
npx prisma generate
yarn start
cd react
yarn
yarn start
[email protected]
admin
ADMIN
apollo-server
For a fully-fledged React & Apollo tutorial, visit How to GraphQL.
Typescript (https://www.typescriptlang.org/) for the Frontend and the Backend
Frontend:
Backend:
Your feedback is very helpful, please share your opinion and thoughts! If you have any questions or want to contribute yourself, don’t hesitate!
Tests must be implemented. Feel free to create a PR 😃
Add a star to this Repo! It helps a lot!
Create a PR if you are using Naperg and want to add your link here
If this project help you reduce time to develop, you can give me a cup of coffee 😃