mhart / react-server-routing-example Goto Github PK
View Code? Open in Web Editor NEWAn example using universal client/server routing and data in React with AWS DynamoDB
License: MIT License
An example using universal client/server routing and data in React with AWS DynamoDB
License: MIT License
Hi, I've been working on https://github.com/guidsen/react-simple-universal that solved the boilerplate involved with universal React Apps.
I'm really curious about your thoughts about this and would love to have some help evolving this repo.
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.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.