Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a REST Api using hapi #2204

Closed
ktrev opened this issue Nov 24, 2014 · 1 comment
Closed

Creating a REST Api using hapi #2204

ktrev opened this issue Nov 24, 2014 · 1 comment
Assignees
Labels
support Questions, discussions, and general support

Comments

@ktrev
Copy link

ktrev commented Nov 24, 2014

Hi , I am new to Hapi and this is a very basic question.
We are planning to create a REST Api using Hapi.
Our Application has different features like Chat , Forums Quiz etc. Now my question is should I create separate plugins for these features or just follow the basic this ie, creating routes,handlers, validation etc.

Which is a better way for structuring the entire code?

@hueniverse
Copy link
Contributor

You are better off asking this on the https://github.com/hapijs/discuss repo, but my short answer is to start building it without plugins and after a few days, figure out the natural parts and then see if breaking them into plugins makes your code better organized. It is trivial to move in and out of plugins.

@hueniverse hueniverse added the support Questions, discussions, and general support label Nov 24, 2014
@hueniverse hueniverse self-assigned this Nov 24, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

2 participants