Do you guys have any experience with API Generators?
I've taken a look at strapi but want to do slightly differently so of course I built my own.
Would love some initial feedback and any ideas people have for improvements!
https://github.com/sugarkubes/generators
#ask-ih
Nice! I would be great if it had some webhooks or something to get this linked up with my other async processes (send an email, maybe charge someone, etc.). Or if those integrations were built in.
Have you ever played around with PostGraphile? It requires some medium to advanced Postgres knowledge, but generates an amazing GraphQL API.
I added the graphql api!
no i haven't but that's a great idea to add a graphql api on top. and I've been thinking a lot about webhooks or other kinds of middleware to support common use cases.
Of course this is a thing, and here I am building api's manually like a pleb. I'm not the most experienced but I'll take a look at it! Thanks for sharing.
Edit: ah, looks like windows isn't supported for one of the dependencies?
npm WARN apigentest@1.0.0 No description
npm WARN apigentest@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 217 packages from 129 contributors and audited 2362 packages in 37.742s
found 0 vulnerabilities
F:\Code\React\ApiGenTest>npm i -g sugar-generate
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for sugar-generate@0.0.9: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
ok if you update to 0.0.10 or npm i -g sugar-generate@latest the windows restriction is lifted. lmk if it works or any error messages you get! Would love to support windows.
Ok, I'll check it out sometime this week and let you know how it goes.
Yeah windows isn't currently supported, mostly because I don't have a windows machine to test on. Let me lift the restriction and see if it happens to work. give me five.
good.