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

[WIP] Rewrite docs to include examples #115

Merged
merged 22 commits into from
Feb 4, 2017
Merged

Conversation

timneutkens
Copy link
Member

I rewrote / moved a lot of stuff around. Please have a look :) Will add the examples soon.

@timneutkens timneutkens changed the title [WIP] Rewrite docs to inlude examples [WIP] Rewrite docs to include examples Dec 27, 2016
README.md Outdated

## Example
## How to use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 🔥

README.md Outdated
send(res, 200, 'Ready!')
}
```
npm install micro --save
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Command line indicator (dollar sign) missing. Also please put the flag before the package name!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 🔥

README.md Outdated
```

To run the microservice on port `3000`, use the `micro` command:
Add a script to your package.json like this:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json, not package.json

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 🔥

@NetOpWibby
Copy link

Oh wow, thanks for this PR! I learned a lot by looking at the revised README.

README.md Outdated

```bash
micro -H localhost sleep.js
{
Copy link
Contributor

@onbjerg onbjerg Jan 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing opening code fence (```)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 🙌

README.md Outdated
}
```

#### Api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API (it's an abbreviation)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 🙌

README.md Outdated
}
```

#### Api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API (it's an abbreviation)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 🙌

README.md Outdated

**`createError(code, msg, orig)`**
#### Api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API (it's an abbreviation)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 🙌

README.md Outdated
@@ -249,6 +238,24 @@ function handleErrors (fn) {
}
```

#### Api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API (it's an abbreviation)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 🙌

@onbjerg
Copy link
Contributor

onbjerg commented Jan 20, 2017

Added some comments, hope you don't mind 😊

@timneutkens
Copy link
Member Author

@leo @rauchg can you do a final review?

@timneutkens
Copy link
Member Author

I wonder if we should disable xo for the examples 🤔

@leo leo merged commit c7de7e8 into vercel:master Feb 4, 2017
@leo
Copy link
Contributor

leo commented Feb 4, 2017

@timneutkens 😍

@timneutkens timneutkens deleted the rewrite-readme branch February 4, 2017 21:04
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.

5 participants