Skip to content

SeanDoyleGit/keystone-6-custom-upload-example

Repository files navigation

Custom Upload/Download pages for the Admin UI in Keystone 6

This project is forked from the Custom Admin UI Pages project.

It demonstrates how to build a custom "Upload Tasks" page and a custom "Download Tasks" page in the Admin UI for Keystone 6.

It builds on the Task Manager starter project.

Upload Tasks Page

Navigate to localhost:3000/upload-tasks

The upload tasks page allows you to create large number of tasks by uploading a .csv file. The .csv file needs to have the headings label, priority, isComplete, assignedTo, and finishBy.

All files that are uploaded are added to the TaskUpload list and are stored locally under public/files.

Download Tasks Page

Navigate to localhost:3000/download-tasks

The download tasks page allows you to export all the tasks that are stored in the database into a .csv file. The .csv file will have the headings label, priority, isComplete, assignedTo, and finishBy.

Instructions

To run this project, clone the Keystone repository locally 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!

About

Keystone 6 example for uploading data via a custom Admin UI page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published