Git Product home page Git Product logo

react-server-routing-example's People

Contributors

dependabot[bot] avatar mhart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-server-routing-example's Issues

Client side dynamodb (dynamodb in the browser)

Hey,
Fellow NYC developer here! Thanks for making this available. I implemented something kind of similar based on your example, but have been stuck on trying to get dynamodb to work in the client.

The AWS link you provide in the project suggests using cognito, but the documentation for doing it with javascript in the browser seems extremely poor. This is especially true when it comes to dealing with unauthenticated users.

I did manage to get an unauthenticated cognito token, as well as set the permission on the database, but it seems like a very unnecessary pain in the ass. For one it requires making two trips to AWS (one to get a token, the second to hit the DB), and it seemed quite buggy and poorly conceived from my initial experience.

So in short I was curious if you ever managed to get dynamodb working from the client with the AWS module, and if so what approach you took? If you could link me to an example or just point me in the right direction that would be really awesome. If you've never done this, thats cool too and thanks for the resource.

Cannot run jsx

Hello

running node server.js
gives a error

../react/react-server-example-master/App.js:50
    return (< div >
            ^
SyntaxError: Unexpected token <

(There's actually not space between the div)

I'm running node v0.12.2

How come react 16.4.2 made server side routing so complicated

Hi Michael,
I just started using react 16.4.2 from 15.5.4 and I have to say that server side routing was so much less complicated. I easily served my html using a hapijs server and basically had to make sure I disabled hash routing on the client. On the hapijs side I had to make sure my routes served up the html so I had a pretty simple FileHandler() function to do this and mapped all my static routes to it. Then as I built out my pages on the client I still needed to create a route in the react router but difference is that now I needed to make sure the same route also existed on the hapijs server. Jeez. Kudos for coming up with this solution using browserfy but your solution does not look like it is for the faint of heart. Do you know if there is a solution using reactjs 16.4.2 that is more like what I describe?

-J0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.