next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Using a fake JSON API to test components and allow decoupled design

Open theodorosploumis opened this issue 3 years ago • 2 comments

I am wondering if we could use a fake JSON API like json-server with this project so we test the components without a Drupal backend as also as allow frontent designers to create components in a decoupled way.

  • Does this make sense?
  • Do the "Basic Starter" components support this or they are strongly tighten to the Drupal JSON API?
  • What other options exist to allow API mocking for "free-of-Drupal" components development?

theodorosploumis avatar Feb 15 '22 08:02 theodorosploumis

Hmm interesting. I can see this enabling front-end teams to work independently from Drupal. I'll look into this.

shadcn avatar Feb 15 '22 17:02 shadcn

I found that https://www.npmjs.com/package/drupal-jsonapi-extractor can be very helpful here. Will give it a try and come back soon.

theodorosploumis avatar Oct 04 '22 10:10 theodorosploumis