Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Resources for Jed's Prisma Day 2021 Workshop

License

NotificationsYou must be signed in to change notification settings

keystonejs/prisma-day-2021-workshop

Repository files navigation

This is the sample app built for Jed's Prisma Day 2021 Workshop.

It's both the front and back-end for a Blog built with Prisma, KeystoneJS, GraphQL, Next.js and Tailwind.

The App includes public auth and signup, role-based access control, and custom design-system based components in the Content field. Content authors can embed Polls in post content, and authenticated visitors can vote on responses.

About KeystoneJS

Keystone 6 is the next-gen CMS for Node.js built with Prisma, Apollo Server, and Next.js.

Fully open source, it's not just a great headless CMS, it's also a powerful API server and app back-end.

Learn more atkeystonejs.com

Running this app

Make sure you have:

  • Node v12 or v14
  • Yarn
  • Postgres

Then, clone this repo and runyarn to install the dependencies.

Starting the API

Start the API Server first by runningyarn api:dev. This will start Keystone's GraphQL API and Admin UI onlocalhost:3000

The first time you open that link you will be prompted to create a new user.

Starting the Site

With the API running, in a separate terminal runyarn site:dev. This will start the front-end Next.js app onlocalhost:8000

About the codebase

The Keystone and Next.js app are colocated in the same repo for ease of demonstration, but you'd often separate them into different packages in a monorepo or even separate repositories.

The back-end files include:

keystone.tsschema.graphql (generated)schema.prisma (generated)schema.tsschema/*

The front-end files include:

components/*pages/*next-env.d.tsnext.config.jspostcss.config.jstailwind.config.jsutils.js

License

Copyright (c) 2021 Thinkmill Labs Pty Ltd. Licensed under the MIT License.

About

Resources for Jed's Prisma Day 2021 Workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp