Skip to content

Add Node.js(Express) Usage Example to Docs #2405

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

HikaruSato
Copy link

I thought that I needed documentation on usage examples in Node.js (Express).
So I will suggest adding a usage example in Node.js (Express).

@posva posva added the docs label Sep 23, 2018
Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

Thank you for your PR!

If it's possible, we would be grateful if you could update the zh. 🙏

@@ -70,6 +70,29 @@ http.createServer((req, res) => {

For Node.js/Express, consider using [connect-history-api-fallback middleware](https://github.com/bripkens/connect-history-api-fallback).

##### Example
```bash
mkdir express_project
Copy link
Member

Choose a reason for hiding this comment

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

could you use express-project instead?

Copy link
Author

Choose a reason for hiding this comment

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

yes, I fixed.

mkdir express_project
cd express_project
npm init
npm i express connect-history-api-fallback -s
Copy link
Member

Choose a reason for hiding this comment

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

can you remove the -s and use install instead, please

Copy link
Author

@HikaruSato HikaruSato Dec 16, 2018

Choose a reason for hiding this comment

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

Yes, I fixed.

npm install express connect-history-api-fallback

@HikaruSato
Copy link
Author

@kazupon I amended Example of chinese translation.
Do you recognize it? Please confirm.🙇‍♂️

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

Successfully merging this pull request may close these issues.

3 participants