thomas4019 / expressa-admin

React frontend for interacting with a site running expressa
2 stars 3 forks source link

copy/paste payload to jsonschema #1

Closed coderofsalvation closed 7 years ago

coderofsalvation commented 7 years ago

coderofsalvation commented 6 days ago idea: would be neato to be able to setup collections by :+1:

adding an extra 'from payload'-button which runs the json payload thru https://www.npmjs.com/package/schemize @thomas4019 Owner thomas4019 commented 5 days ago This is a good idea. I think this could exist in the expressa-admin frontend and ideally wouldn't require any backend changes.

coderofsalvation commented 7 years ago

Ok, having second thoughts about this one. It's a nice feature, but it's not something you would typically need. Therefore i created expressa-cli. From now on we can add all kinds of maintenance/plumbing/boilerplate commands to that repo.

thomas4019 commented 7 years ago

I like this. I can imagine adding various others tools here like data migrations, backups and such.

coderofsalvation commented 7 years ago

right. Btw. 2 things:

  1. an 'hidden' feature quite handy during development: hitting the json-button in an edit-screen in expressa-admin, allows you to paste a json-payload, and the form will render itself accordingly (+ save button works as well). I found this to be perfect for a 'post'-collection: I'm still able to manage post-specific fields, which I don't want to include in the schema (as it would only be used in one page).

  2. I think I will need this commands at some point when I outgrow the file-db:

expressa file2postgres <collectionname>        <-- converts a filedb collection to postgres
thomas4019 commented 7 years ago
  1. Good to know! That will be useful.

  2. Yeah, this would be super useful, but I think it should be more general.

expressa migratedb <collectionname> <newdbtype>
coderofsalvation commented 7 years ago

thx, yes thats way better. you have commandline written in your DNA.

On Fri, Mar 17, 2017 at 9:50 AM, Thomas Hansen notifications@github.com wrote:

1.

Good to know! That will be useful. 2.

Yeah, this would be super useful, but I think it should be more general.

expressa migratedb

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/thomas4019/expressa-admin/issues/1#issuecomment-287299364, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK_ZEb8ABBvneuVqGLtARi8ZVZZm_YAks5rmklNgaJpZM4MIj6X .

-- /WEBSITE 2wa.isvery.ninja /MOBILE +31 6 13499604 /LOCATION Netherlands, Drachten. Hongarije, Budapest. /COMPANYNR. 08124656 /TAGS Rapid Prototyping of ideas/concepts using JavaScript, Node.js, OpenSource. Growth-hacking partnerships, lead scraping partnerships.