ConservationInternational / COA001

COASST Database App & API
0 stars 0 forks source link

Setup Near Production-like Vagrant VM #13

Open d-g-h opened 9 years ago

d-g-h commented 9 years ago
seansu4you87 commented 9 years ago

Just to confirm, the way this is going to be set up, both the frontend html, css, and javascript will be served out of the same domain as the backend api? That way we don't need to do CORS to do cross domain stuff right?

I'm thinking something like:

Frontend

coasst.com/index.html
coasst.com/app.js
coasst.com/style.css

Backend

coasst.com/api/users
coasst.com/api/birds

Does that sound about right?

d-g-h commented 9 years ago

Yes. Or , would do another reverse proxy to avoid the CORS.

/api is a proxy (node localhost:8000)

NGINX will serve everything else.

We should be fine. I will get the vagrant box up soon.

seansu4you87 commented 9 years ago

awesome, thanks @d-g-h !

seansu4you87 commented 9 years ago

Hey @d-g-h just wanted a status update on this. I'm at the point where I want the frontend and backend to start talking to each other. In the meantime, there's definitely other stuff for me to work on, but it'd be nice to get them talking.

Thanks!

d-g-h commented 9 years ago

Sorry for the delay. I plan to get something up in the next day or two.

d-g-h commented 9 years ago

screen shot 2015-03-05 at 9 58 02 am

This is killing me. Let's go without build process for now. I will update

https://github.com/RadishLab/COA001/blob/master/src/contexts/authenticating.js#L2

https://github.com/dcodeIO/bcrypt.js/wiki/Benchmark