Opinionated starter template server built with KeystoneJS and GraphQL.
Run
yarn dev
- To view the config for the server, look at ./keystone.ts
- To test the GraphQL go to http://localhost:8888/api/graphql
- To view the Admin UI go to http://localhost:8888
We've set you up with an SQLite database for ease-of-use. If you're wanting to use PostgreSQL, you can!
Just change the db
property on line 16 of the Keystone file ./keystone.ts to
db: {
provider: 'postgresql',
url: process.env.DATABASE_URL || 'DATABASE_URL_TO_REPLACE',
}
We've put auth into its own file to make this humble starter easier to navigate. To explore it without auth turned on, comment out the isAccessAllowed
on line 21 of the Keystone file ./keystone.ts.
- Keystone - Overview of all the features
- Keystone - getting started walkthrough which will walk you through what you get as part of this starter.
- Keystone - Common fields
- Keystone - Relationships
- Keystone - Document field
- Keystone - Auto API
- Keystone - Sessions
- TODO: FUTURE: While Keystone works as a standalone app, you can embed your Keystone app into a Next.js app. This is quite a different setup to the starter, and we recommend checking out our walkthrough for that here.
- For more on auth, check out our Authentication API Docs
- For more on database configuration, check out or DB API Docs