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
Login success #4
Conversation
dbalatero
commented
Feb 8, 2017
- Got the development db up and running
- Login/signup/forgot password point back at the Rails app
- Fixed all the errors I was getting in my JS console
- Markers correctly update
- Location types preload
src/coffee/app.coffee
Outdated
# Development | ||
auth_host = "http://localhost:3000" | ||
api_host = "http://localhost:3100/api/0.2" | ||
if document.URL.indexOf("http://localhost:9001/") > -1 |
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.
maybe prefer indexOf("http://localhost")
and don't worry about the port? the less hardcoded the port the better
@ezwelty Thanks for catching those location fields. It's hard to see from the code how the API might have changed between Node and Rails, so my strategy so far has been to just use the site and watch how things have changed. I'll maybe start making the API a bit clearer? Reading this method for example is very entangled and hard to parse as an outside dev… even adding paragraph breaks between relevant sections would help readability which might be nice. Also giving the Are we good with merging these changes to |
@ezwelty also btw if we're both pushing to the same branch, you can avoid merges usually with |
I'd suggest we keep this in a separate branch, as I might be making design and locale changes while the API transition is ironed out. I pointed basic location and list functionality to the new locations.json data structure. That should make it easier to detect things that are broken. Here are few things I notice: types.json
locations.json
locations/{id}.json (#3383 at Kalmia & 26th in Boulder is good for testing)
locations*
Map vs. List
p.s. I had left a commented block for Production endpoints in localhost because it's sometimes useful to point to the Production API. |
@ezwelty Cool. I think a good strategy for me will be to capture a valid request from the Rails server, switch to the Node server, and then diff the two responses. This will show me what fields might differ. I can make Trello cards for the things you pointed out above ^ |
@dbalatero Clever. And I agree with the need for better documentation of the NodeJS API. I'll let you rename this branch to |