Cambalab / vue-admin

An open source frontend Framework for building admin applications running in the browser on top of REST, using ES6 and Vue.js
GNU General Public License v3.0
132 stars 24 forks source link

Unable to login and 404 on the demo api #176

Closed vlom31 closed 4 years ago

vlom31 commented 4 years ago

Describe the bug After installing the app; I'm unable to login.

First is I don't know what username & password I'm supposed to enter in the demo login page.

Second, I get a 404 not found for localhost:8888/api/auth/ (or any other url on that port for that matter) even though the server is running (I followed the steps in the README with no errors).

Screenshots https://www.evernote.com/l/AFpy2wf08uZN4IgFHEMmp-AoY3ppd0MEigY

Desktop (please complete the following information):

sgobotta commented 4 years ago

Thanks for opening this issue.

You're right, we haven't documented properly how to log in to the demo site. We don't really need to since we're planning to move the demo and the test server to another repository. But I agree with you, we should put that information somewhere meanwhile.

Until we update the README.md you can find two hardcoded users in the auth service or use:

username: dev@camba.coop password: 123456

I'll take a look at the error. As far as I can see, we did not implement a list of the api routes of the test server when you visit .../api, that's what I see in the screenshot.

sgobotta commented 4 years ago

Describe the bug After installing the app; I'm unable to login.

First is I don't know what username & password I'm supposed to enter in the demo login page.

You'll be able to login using credentials mentioned above

Second, I get a 404 not found for localhost:8888/api/auth/ (or any other url on that port for that matter) even though the server is running (I followed the steps in the README with no errors).

When I visit localhost:8888/api/auth/ the message looks like this:

image

Which makes sense, since the endpoint requires a username and a password that exists in the server users "fixture", meaning that endpoint works.

This disussion makes me think we just need an updated README.md providing credentials for the demo app. Apart from that, are proposing an enhancement in the utils/server scripts?