A wrapper to quickly start a Sapper web app, with a Prisma database (with a GraphQL API), and the Bulma UI framework.
- Clone this repo:
npx degit https://github.com/DevdudeSami/sapper_prisma_bulma_app.git myApp
cd myApp
- Run sapper:
cd sapper
- Install npm dependencies:
npm install
- Run:
npm run dev
- Verify it's running by going to
http://localhost:3000
- Start the Prisma server
- Install prisma:
npm install -g prisma
- Make sure docker is set up (follow the instructions on their website)
cd db
- Install npm dependencies:
npm install
- Start docker:
docker-compose up -d
- Deploy and generate prisma:
prisma deploy; prisma generate
- Start the GraphQL server:
node index.js
- Verify prisma is running by going to
http://localhost:4000
(you should see a GraphQL playground)- You can now also go to
http://localhost:4466
to access the internal prisma GraphQL playground - You can access the prisma admin panel at
http://localhost:4466/_admin
- You can now also go to
- Install prisma: