-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
@kazupon I amended |
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).