hoodiehq / discussion

General discussions and questions about Hoodie
7 stars 1 forks source link

Treat Hoodie apps like plugins: add support for client/, server/ and admin/ folders #98

Closed gr2m closed 7 years ago

gr2m commented 8 years ago

Hoodie plugins are currently work in progress, but they will be structured the same way the core modules are, see for example hoodie-account (Note that it does not have an admin/ folder, which will be used in future for custom admin UIs).

The idea is that if you need custom server or client functionality, you are not forced to create a separate module for it. Instead, you can add your code directly to the client/, server/ and admin/ folders, just like you would do in plugins.

I thought about this for a while now and think it makes a lot of sense. It would help to avoid workarounds like this one

gr2m commented 8 years ago

you can ignore admin/ for now as the admin dashboard is not yet ready. We can create a follow up issue for that

I’m a bit concerned about potential conflicts if we create client/ and server/ folders in the root path, for example ember apps have a server/ folder. I would suggest we use /hoodie/client and /hoodie/server instead, and make the paths configurable like the data and public paths?

Please let me know if you have any questions