How to deploy a live ReactJS/Redux website in under 10 minutes

How to deploy a live ReactJS/Redux website in under 10 minutes

☞ 

#reactjs

  • Set up AWS S3 bucket (time: ~5 minutes)a) Log into AWS console and click on S3b) Click create bucket and enter a Bucket name(example: onederful-quickstart).
  • Click Next through all the remaining steps and create the bucket.In Bucket name, use a unique name for your appc) On the list view, click on the newly created bucketYour newly created bucket should be in the list viewd) A popup will show up, click on propertiesClicking on the properties panel will…
  • The error document being set to index.html enables the React app to define and handle all the routing rather than S3f) Click on permissions tab and copy and paste the policy (replacing [YOUR BUCKET NAME] with your bucket name){ “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “AllowPublicRead”, “Effect”: “Allow”, “Principal”: “*”, “Action”:…
  • If you don’t include this, the endpoint in step e) will return a 403 unauthorized error as it defaults the bucket to private.

Ever had an webapp idea that you wanted to quickly prototype and send to people? After going to 8+ hackathons and winning over $105,000 in prize money, I’ve found a pretty good way to get a fully…
Continue reading “How to deploy a live ReactJS/Redux website in under 10 minutes”

How to deploy a live ReactJS/Redux website in under 10 minutes

How to deploy a live ReactJS/Redux website in under 10 minutes

☞ 

#reactjs

  • Set up AWS S3 bucket (time: ~5 minutes)a) Log into AWS console and click on S3b) Click create bucket and enter a Bucket name(example: onederful-quickstart).
  • Click Next through all the remaining steps and create the bucket.In Bucket name, use a unique name for your appc) On the list view, click on the newly created bucketYour newly created bucket should be in the list viewd) A popup will show up, click on propertiesClicking on the properties panel will…
  • The error document being set to index.html enables the React app to define and handle all the routing rather than S3f) Click on permissions tab and copy and paste the policy (replacing [YOUR BUCKET NAME] with your bucket name){ “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “AllowPublicRead”, “Effect”: “Allow”, “Principal”: “*”, “Action”:…
  • If you don’t include this, the endpoint in step e) will return a 403 unauthorized error as it defaults the bucket to private.

Ever had an webapp idea that you wanted to quickly prototype and send to people? After going to 8+ hackathons and winning over $105,000 in prize money, I’ve found a pretty good way to get a fully…
Continue reading “How to deploy a live ReactJS/Redux website in under 10 minutes”

How to deploy a live ReactJS/Redux website in under 10 minutes

How to Deploy A Live ReactJS/Redux Website in Under 10 Minutes:

  • Set up AWS S3 bucket (time: ~5 minutes)a) Log into AWS console and click on S3b) Click create bucket and enter a Bucket name(example: onederful-quickstart).
  • Click Next through all the remaining steps and create the bucket.In Bucket name, use a unique name for your appc) On the list view, click on the newly created bucketYour newly created bucket should be in the list viewd) A popup will show up, click on propertiesClicking on the properties panel will redirect you to the properties tab for the buckete) Click on Static website hosting and enter in index.html for both fields Index document and Error documentThe endpoint is the public URL you can share with anyone.
  • The error document being set to index.html enables the React app to define and handle all the routing rather than S3f) Click on permissions tab and copy and paste the policy (replacing [YOUR BUCKET NAME] with your bucket name){ “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “AllowPublicRead”, “Effect”: “Allow”, “Principal”: “*”, “Action”: “s3:GetObject”, “Resource”: “arn:aws:s3:::[YOUR BUCKET NAME]/*” } ]}This policy allows everyone (principal: “*”) to see the objects (your website) in your bucket.
  • If you don’t include this, the endpoint in step e) will return a 403 unauthorized error as it defaults the bucket to private.

Ever had an webapp idea that you wanted to quickly prototype and send to people? After going to 8+ hackathons and winning over $105,000 in prize money, I’ve found a pretty good way to get a fully…
Continue reading “How to deploy a live ReactJS/Redux website in under 10 minutes”

Getting started with React Native and NativeBase (Tab Boilerplate)— part 2

Getting started with React Native and NativeBase (Tab Boilerplate)— part 2  #javascript

  • Getting started with React Native and NativeBase (Tab Boilerplate)— part 2In Part 1 , we had covered basic set up of our React Native App, which uses Expo and NativeBase libraries.We had it setup through CRNA (Create React Native App ) tool to ease the process and avoid many of the otherwise setup hassles.As many of the apps these days come with a standard tab navigation, in this part i have created a boilerplate which you can simple download and run after installing necessary npm modules.The boilerplate created will help you to quickly create your apps in React Native that use custom fonts , Ex-Navigation with Tab Navigation, NativeBase components which many otherwise would find it a little time consuming process.An app that on start will look something like this :Please feel free to post your comments and fork.
  • Happy Day!

In Part 1 , we had covered basic set up of our React Native App, which uses Expo and NativeBase libraries. We had it setup through CRNA (Create React Native App ) tool to ease the process and avoid…
Continue reading “Getting started with React Native and NativeBase (Tab Boilerplate)— part 2”

sriraman’s response to Differences between MobX and Redux? Which one to use when?

How is #MobX different from #Redux? What to use when?
Top response:  🔥

#ReactJS

  • Actions and state changes are very traceable
  • actions are really straightforward; you don’t have to return new data structures etc.
  • functional programming oriented, which offers cool benefits like time travelling, trivial action testing and such
  • Very suitable for a state tree that has lot of inter data relationships; the data doesn’t need to be normalized to a tree
  • Simpler to work with async actions

Read the full article, click here.


@Hashnoder: “How is #MobX different from #Redux? What to use when?
Top response: 🔥

#ReactJS”


MobX has been getting some momentum lately. How is it different from Redux?


sriraman’s response to Differences between MobX and Redux? Which one to use when?

React Gotchas – Angularity

#ReactJS also has its gotchas:

  • Please enable JavaScript to view the comments powered by Disqus.
  • If you’re using JSX (and most people are), the components you write must begin with an uppercase letter.
  • setState ({ name : ‘Joe’ }, function () { // called after state has been updated // and the component has been re-rendered });
  • The means using names like UserList and Menu and SubmitButton , and not using names like userList , menu , and submitButton .
  • They’ll also get called whenever props change – so if you absolutely want to respond only to state changes, use the callback approach.

Read the full article, click here.


@ReactiveConf: “#ReactJS also has its gotchas:”


Beware these few mistakes that can trip you up.


React Gotchas – Angularity