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

Express Server Generation #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Express Server Generation #3

wants to merge 5 commits into from

Conversation

kshinn
Copy link
Owner

@kshinn kshinn commented Mar 18, 2016

This adds support for Express server generation. To keep it generic, it currently only generates a router that can be plugged into any Express app. The current direction would be to have any index.js or app setup files either maintained by hand, or generated by a local doctor-swag plugin.

The generator is pretty opinionated on the handlers module in the fact that you must create a handlers module at the top level for the router file to call into. the goal is to divorce the code you would write in a handler and change it into a more generic function that takes input and produces output. All of the Express mechanics would be either generated or handled in the middleware.

@kshinn kshinn self-assigned this Mar 18, 2016
@kshinn
Copy link
Owner Author

kshinn commented Mar 18, 2016

Reference to issue: #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant