node.js, typsecript, react, next.js, grpahql, prisma
NestJS로 감싸서 사용해보려 했으나... node package 버전 이슈 및 시간 상 패스
docker 사용 시 필수적으로 keystone.ts 복사해주어야 함
찾아볼 레퍼런스 부족... 대부분 과거 nodejs로만 되어 있는것
현재 keystone은 typsecript, nextjs, graphql, prisma로 감싸져서 시작 app을 제공한다
그래서 공식문서만 보고 해야할 듯
그런데 레퍼런스가 잘 되어 있긴 하다
export default withAuth(
config({
// db: {
// // we're using sqlite for the fastest startup experience
// // for more information on what database might be appropriate for you
// // see https://keystonejs.com/docs/guides/choosing-a-database#title
// provider: 'sqlite',
// url: 'file:./keystone.db',
// },
db: {
provider: 'mysql',
url: 'mysql://keystone:keystone@localhost:3306/keystone',
onConnect: async context => { /* ... */ },
// Optional advanced configuration
enableLogging: true,
idField: { kind: 'uuid' },
},
lists,
session,
})
);
공식 문서
graphQL 주소
레퍼런스 예시 깃헙 주소
postgresql
, mysql
, sqlite
=> jwt token 방식으로도 구현 가능