keithwhor / nodal

API Services Made Easy With Node.js
http://www.nodaljs.com/
MIT License
4.51k stars 209 forks source link

React as front-end #266

Open folivi opened 8 years ago

folivi commented 8 years ago

Hi, loving the framework so far, great work! I have question/request: what's the best way to use React for the front-end? Can you provide a sample project?

Cheers

keithwhor commented 8 years ago

Can't provide a sample project yet, but we'll definitely get to this soon. Easiest way to interface with a Nodal API server from a JavaScript front-end is using the APIConnect library: https://github.com/keithwhor/APIConnect

More on this stuff soon. Expect a lot of content by end of summer.

doroncy commented 8 years ago

Hi, first of all its a very interesting framework and cloud offering. kudo for this.

to followup on this question.. i am trying to understand what is the best way to connect a single page application to the nodal API server. as far as i understand the nodal + polybit will cover a stateless http api server, and for the frontend application i should use my own stack and build tools (react, angular, webpack, etc..) and serve it from a separate server on (surge, heroku, amazon, etc...). please correct me if i am wrong and if this is the scenario in order to avoid CORS issue, i should modify the CORSMiddleware according to my frontend server domain ?