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

Add examples to the documentation #14

Open
lastmjs opened this issue Jul 2, 2016 · 1 comment
Open

Add examples to the documentation #14

lastmjs opened this issue Jul 2, 2016 · 1 comment

Comments

@lastmjs
Copy link
Member

lastmjs commented Jul 2, 2016

Think of the best way to add code examples.

@lastmjs
Copy link
Member Author

lastmjs commented Jul 9, 2016

We need to add examples of most of the common Express use-cases:

  • Creating an app and listening on a port
  • Adding a generic middleware (app.use)
  • Adding a middleware with a method (app.all, app.get, app.post, etc.)
  • Doing configurations (all other app or express method calls that require a config element)
  • Adding a middleware with a method to router: router.method (router.all, router.get, router.post, etc.)
  • Adding generic middleware to router (router.use)
  • router.route
  • Configuring router (router.param)
  • app.route and router.route

To summarize, show everything that you can do. app middleware, router middleware, and app and router configuration, properties, and methods

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

No branches or pull requests

1 participant