0.0.2 • Published 2 years ago

@keystone-6-master/example-blog v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Base Project - Blog

This project implements a basic Blog, with Posts and Authors.

Use it as a starting place for learning how to use Keystone.

Instructions

To run this project, clone the Keystone repository locally, run yarn at the root of this repository, then navigate to this directory and run:

yarn dev

This will start the Admin UI at localhost:3000. You can use the Admin UI to create items in your database.

You can also access a GraphQL Playground at localhost:3000/api/graphql, which allows you to directly run GraphQL queries and mutations.

Congratulations, you're now up and running with Keystone! 🚀

Optional: add sample data

This example includes sample data. To add it to your database:

  1. Ensure you’ve initialised your project with yarn dev at least once.
  2. Run yarn seed-data. This will populate your database with sample content.
  3. Run yarn dev again to startup Admin UI with sample data in place.

Try it out in Code Sandbox 🧪

You can play with this example online in a web browser using the free codesandbox.io service. To launch this example, open the URL https://githubbox.com/keystonejs/keystone/tree/main/examples/blog. You can also fork this sandbox to make your own changes.

Next steps

Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground.

When you’ve got the hang of this base project, try a feature project to learn Keystone’s advanced features and take your knowledge to the next level.