Advanced-React icon indicating copy to clipboard operation
Advanced-React copied to clipboard

Keystone 21

Open gautamsi opened this issue 4 years ago • 6 comments
trafficstars

update finished example with @keystone-next@^21.0.0 changes

  • use local images instead of Cloudinary
  • use postgres database
  • fix seeding data
  • add initial role for user

missing

  • test cases not fixed or even tested

gautamsi avatar Jul 10 '21 18:07 gautamsi

Hi, @gautamsi

Where do you host your Postgres DB? Did you create it locally? How do you do it?

Thanks for the PR, great

thibault60000 avatar Aug 16 '21 08:08 thibault60000

I had this locally

gautamsi avatar Aug 16 '21 09:08 gautamsi

I had this locally

Hi,

When I start seeds with your code, I have this error : Error: Unable to create a Product.photo<ProductImage>

Cause : await context.sudo().lists.Product.createOne({ data: product }); :/

**EDIT : ** I forgot images: { upload: 'local' }, :)

thibault60000 avatar Sep 01 '21 11:09 thibault60000

a lot of stuff has changed if you upgrade even further, should see about updating this PR again to keystone 24

theskillwithin avatar Sep 01 '21 16:09 theskillwithin

this can be helpful https://github.com/keystonejs/keystone/tree/master/examples-staging/ecommerce

theskillwithin avatar Sep 01 '21 21:09 theskillwithin

anyone else having trouble uploading images (other than the seeded ones) after upgrading to 24?

theskillwithin avatar Sep 02 '21 22:09 theskillwithin