vue-boilerplate
vue-boilerplate copied to clipboard
Problem with proxy middleware
I always have this error when run npm run dev
[HPM] Proxy created: /api -> http://localhost:9000
[HPM] Subscribed to http-proxy events: [ 'error', 'close' ]
So that you cannot make any request to server route
Have you started the server? You have to run it by node server app.js
or provide another server. I will improve readme.
Yes I just figure how to start another server process. But the server needs some libs which are not exist in package.json such as: mongoose, cors...
-------- Original message -------- From: 任羽飞 [email protected] Date: 2/6/2017 09:46 (GMT+07:00) To: MillerRen/vue-boilerplate [email protected] Cc: Tran Quang Vinh [email protected], Author [email protected] Subject: Re: [MillerRen/vue-boilerplate] Problem with proxy middleware (#2)
Have you started the server? You have to run it by node server app.js or provide another server. I will improve readme.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/MillerRen/vue-boilerplate","title":"MillerRen/vue-boilerplate","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/MillerRen/vue-boilerplate"}},"updates":{"snippets":[{"icon":"PERSON","message":"@MillerRen in #2: Have you started the server? You have to run it by node server app.js
or provide another server. I will improve readme."}],"action":{"name":"View Issue","url":"https://github.com/MillerRen/vue-boilerplate/issues/2#issuecomment-277574949"}}}
I moved server packages to server
directory. You need to install them.