Build & Deploy A React JS Text Generator App

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

Комментарии • 94

  • @anooprajwal
    @anooprajwal 7 лет назад +25

    Hai, your tutorials are really Cool. Especially your voice and narration...
    Please make a simple crud application tutorial using React.js and Firebase.

  • @demian5511
    @demian5511 6 лет назад +1

    Great video! Hope to see more React mini projects!
    In case someone is still watching, when defining a method(function) inside components, it is better to use arrow functions, because it saves you from having to bind(this):
    instead of:
    showHTML(x){
    this.setState({
    ...........
    })
    }
    use:
    showHTML = (x)=>{
    this.setState({
    ............
    })
    }
    so there is no need for:
    this.showHTML.bind(this)
    arrow notation does the job for you automatically!

  • @roya67
    @roya67 6 лет назад

    I had to change the path in two places in the index.html inside the Build folder - the main CSS and the JS, but your strategy worked. Thank you for uploading this.

  • @aldocaamal5379
    @aldocaamal5379 7 лет назад +6

    In case someone wants to try this now, seems that hipsterjesus no longer works like in the vid, it returns a simple block of text without html, just saying so you wont have to spend 20 mins trying to get why it doesnt return p tags... well... enjoy the Tut and nice job Brad, everything else is working great, except for some CORS issues, but just installed a Chrome extension :)

    • @babitabisht4563
      @babitabisht4563 6 лет назад

      What Chrome tool should we install, to make this app work

    • @kamaboko1
      @kamaboko1 6 лет назад +1

      This is a like to the Chrome CORS tool
      chrome.google.com/webstore/detail/cors/dboaklophljenpcjkbbibpkbpbobnbld?hl=en

    • @babitabisht4563
      @babitabisht4563 6 лет назад

      @@kamaboko1 thanks....

    • @xubair96
      @xubair96 6 лет назад

      Same thing happened, and also the issue of No 'Access-Control-Allow-Origin' header is present on the requested resource.

    • @christerjohanzzon
      @christerjohanzzon 5 лет назад

      The CORS-bug is an annoyance to anyone working with API's. I used a Heroku-app to bypass it. Replace your axios.get url with this: cors-anywhere.herokuapp.com/hipsterjesus.com/api. It will send traffic through the Heroku-app instead. If it's down, just test it again a few minutes later.

  • @mrmeenee2788
    @mrmeenee2788 7 лет назад +18

    Pls don't stop making videos...I'm gonna make a huge donation the minute I get my first salary

  • @keepforever726
    @keepforever726 7 лет назад

    First, lemme say thank you. This is the best channel I've ever learned from and i've RUclips'd A LOT. I've bought both eduonix courses on react and react-native and they've been super helpful.
    I would like to request you do an "informative" episode on the 'business' aspect. For example, what is fare to charge in modern market. What sort of features/architectures demand $X or, perhaps, just your own personal montra on the money side of things.
    Anyways, that's my 2cents. Keep the good stuff coming! You rock!

  • @programadorcarioca2662
    @programadorcarioca2662 4 года назад

    Nice man, I am from Brazil and watch your content directly

  • @Jaskaransingh-hv5eb
    @Jaskaransingh-hv5eb 7 лет назад +1

    Your way of explaining is very good. thanx for tutorial

  • @ironmade3424
    @ironmade3424 5 лет назад +1

    This helped me with a deployment issue, thanks for uploading! ;)

  • @jiadailiu5191
    @jiadailiu5191 5 лет назад +1

    HipsterJesus API no longer works. It does not return the text data when you change html or paras parameter. Hope to use another API for this project.

    • @mandapatiganesh7409
      @mandapatiganesh7409 4 года назад

      please suggest any similar api .Provide link here plaese

  • @sourabhsurana6771
    @sourabhsurana6771 7 лет назад +7

    I am facing No 'Access-Control-Allow-Origin' header is present on the requested resource. issue pleas help me.

    • @yabba234
      @yabba234 7 лет назад

      ive got the same error for this tutorial, it's always kind of strange to me, some sites work with axios some others dont, when you get this error you can do the request with JSONP and it will work but its stupid :/ i dont understand why it worked for everyone else but not for us..

    • @yabba234
      @yabba234 7 лет назад

      I tried to use this as a workaround, it should work in theory. It works, I get the response but there's still some error, I get a "missing semicolon" in my console log but when i click on the line number it points me to the json-object i got back from hipsterjesus
      anyway, this could be a JSONP workaround
      getSampleText_s() {
      $.ajax({
      url: 'hipsterjesus.com/api/?paras=' + this.state.paras + '&html=' + this.state.html,
      type: 'GET',
      headers: {'X-Requested-With': 'XMLHttpRequest'},
      crossDomain: true,
      dataType: 'jsonp',
      success: function (data) {
      data = JSON.parse(data);
      console.log(data);
      this.setState({text: data.text});
      }
      });
      }

    • @william1320
      @william1320 7 лет назад +12

      yeap, definitely not working with hipsterjesus so I’ve changed with baconipsum.com/api/?type=all-meat¶s=3&start-with-lorem=1&format=html and modified state (format instead of html) and it worked. Additionally in 11:49 I’ve replaced “respond.data” instead of “respond.data.text” . I hope it helps.

    • @Assassunn
      @Assassunn 7 лет назад +2

      Because the API you're requesting a GET doesn't allow your origin. So if this API is yours and running on your server, you have to setHeader("Access-Control-Allow-Origin", "replace with your origin, ex: localhost:3000, or * for any") on your response with nodejs.

    • @zlatkoiliev8927
      @zlatkoiliev8927 7 лет назад +11

      there is one plugin for chrome browser called Allow-Control-Allow-Origin, install it and turn it on, and this will fix the issue with the cross origin calls! :)

  • @kelvindavis7169
    @kelvindavis7169 6 лет назад

    I know this was posted a while ago, but I think you should do a weather api using react as one of your projects. Just a suggestion. Helps us to make api calls using this framework. I think it's good practice.

  • @coreo4230
    @coreo4230 7 лет назад +1

    Hiya, I'm new to JS and React. I'm a bit confused as to where props.value at 14:55 comes from. I I understand what props is, but where does .value come from? Where is it inherited from? Is it a method? If so why can't I find it in the React API Docs? Also there seems to be another method called 'props.name' I found while traversing examples in the React Docs, similarly I can't seem to find an explicit section explaining what props.name is and where it inherits from within the React Docs either.
    Thanks in advance!

  • @RealSoundNow
    @RealSoundNow 7 лет назад

    Great tutorial. Really concise and well-explained. Is the deployment really that easy? You said you're using a VPS . For us React newbies will this work on generalized hosting? Thanks.

    • @RealSoundNow
      @RealSoundNow 7 лет назад

      Yes, create-react-app does build that easily. In fact, there's now a field to set the homepage so you don't have to edit the index.html file. Works great.

  • @RafaelSFTech
    @RafaelSFTech 5 лет назад +1

    ComponentWillMount is deprecated, thanks for the video man

  • @antoinearray7944
    @antoinearray7944 7 лет назад

    You are awesome 8-)
    I will for sure subscribe to your complete course online!!

  • @FordExplorer-rm6ew
    @FordExplorer-rm6ew 5 лет назад

    So weird how this works . Have been deploying front end react and it's been working perfectly on git pages but now all of a sudden yarn and npm are conflicting , tough day.
    Works well on another machine .
    Does this make your machine/workspace bloated over time going back and forth between yarn and npm?

  • @DungHo-rs3tz
    @DungHo-rs3tz 4 года назад

    Hi,
    can you explain the public_html part more in detail? That would be really helpful.
    I also have a server which runs on Ubuntu which I access via the IP address, I have run build on the files and have the static files now. But I cannot get the react application to run.

  • @tushar000001
    @tushar000001 7 лет назад

    You always make awesome videos can you also make video on how to understand apis out there so that I can use it to practice. It's pretty hard I guess to understand apis like youtube apis, twitter apis & many more.

  • @ginoskotheon3
    @ginoskotheon3 7 лет назад +4

    Man, I love this channel.

  • @josem3933
    @josem3933 5 лет назад

    You have no idea how much I love you

  • @rahulagarwal968
    @rahulagarwal968 7 лет назад

    Hello, Can u please make a video on how to implement caching in CORE PHP ? Types of caching.

  • @AnkitSingh-vv3xt
    @AnkitSingh-vv3xt 7 лет назад

    Hey brad....love your videos....they are great...ur videos help me alot....
    Currently i m working in a small project..based on ionic2 and angular2
    I have a problem,i am trying to dynmacially create a pdf file with some fields like name,age etc when ever user click on a button..
    plz help me...

  • @CanoOnatli
    @CanoOnatli 6 лет назад +1

    Does anyone know another good api url that i can replace in my code? The Hipsterjesus api doesn't work. Thanks in advance

  • @pouvoircerveau7826
    @pouvoircerveau7826 6 лет назад

    I did not understand the step after 20:00 in the Select component in its Onchange function how the (this.props.onChange(this.state.value)) is used in App component in its onchange , App component onChange ={this.showHtml.bind.(this)) ,what I know in React is we can get state of a parent compoenent to child by using props .
    please can anyone explain to me I am really stuck here

  • @gurubillishrinivasareddy4540
    @gurubillishrinivasareddy4540 5 лет назад

    Please its not working, I followed as defined in your video, getting blank page

  • @cheeseburger1884
    @cheeseburger1884 7 лет назад

    I'm new to javascript and I don't understand why this works: return (

    • @TheShotus
      @TheShotus 7 лет назад +2

      That's because its not JS but JSX.

    • @TraversyMedia
      @TraversyMedia  7 лет назад +2

      Cheeseburger it is jsx which is javascript syntax extension. React uses it to add markup. Very similar except for a few differences like classname instead of class

  • @VibrantBelief
    @VibrantBelief 7 лет назад

    is it possible to create tutorial on the deploy server that you are using

  • @YvonneVibe
    @YvonneVibe 6 лет назад +1

    I got the error "Failed to load hipsterjesus.com/api/?paras=4&html=true: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:3000' is therefore not allowed access." anyone what's happening here and how can I fix it .thanks

    • @jimmyciaston7733
      @jimmyciaston7733 6 лет назад

      You can download the chrome extension chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en to easily solve this

  • @tushar000001
    @tushar000001 7 лет назад

    For sending request you passed params like paras & html using concatenation can it be don using interpolation feature of es6?

  • @ChowChannel1
    @ChowChannel1 7 лет назад

    When are you going to do the PHP project ? I been waiting for so long :(

    • @kevinurielfonseca
      @kevinurielfonseca 4 года назад

      what PHP project? He already has so many!. Beside PHP is getting behind :/.

  • @kalpeshpatel-ek5xo
    @kalpeshpatel-ek5xo 6 лет назад

    Nice Video....i like too much for deployment process

  • @markcain2116
    @markcain2116 7 лет назад

    I noticed that naming in react uses capitals for folders and files names...is that by convention or preference?

    • @hazemayesh
      @hazemayesh 7 лет назад +1

      Convention for file names

  • @9thwave744
    @9thwave744 6 лет назад

    HI , Url to REACT PROJECTS COURSE: is broken

  • @BestofFortnite
    @BestofFortnite 6 лет назад

    EDIT: It's ok now, I added some wode with allowCrossDomain
    Hello I have a problem with the axios line I think, I have this error message in my console :
    No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:3000' is therefore not allowed access.
    Someone know what I have to do? I read forum messages who told me to do cross stuff

    • @Somsubhra_Das
      @Somsubhra_Das 6 лет назад

      How did you fix it? Can you please explain in detail? Thx.

  • @wackydot3478
    @wackydot3478 7 лет назад

    Sir make the part 5 of your CIBLOG please!

  • @micosair
    @micosair 7 лет назад

    You`re on fire lately.

  • @duartelucas8129
    @duartelucas8129 7 лет назад

    Hey, I don't get any text on the browser. What can it be?

    • @mattf.2142
      @mattf.2142 7 лет назад

      The API is down. So the data we're trying to get isn't available right now.

  • @taylora.buckner5970
    @taylora.buckner5970 6 лет назад +1

    anyone looking for a different API to avoid CORS issues and still have the option of conditional formats returned can use:
    baconipsum.com/json-api/
    (e.g. baconipsum.com/api/?type=meat-and-filler¶s=5&format=html)
    You will need to change your props to support a format rather than a boolean html value

    • @Elon40k
      @Elon40k 3 года назад

      this was a perfect solution to Hipster Jesus being offline. Thanks Taylor!

  • @lakshaysharma3848
    @lakshaysharma3848 6 лет назад

    Hey i want to make an app similar to google doc can using reacts js only . Can anyone help me out

  • @valentinacalabrese4562
    @valentinacalabrese4562 7 лет назад

    Great tutorial! 😊

  • @skptricks8798
    @skptricks8798 5 лет назад

    how to deploy next js app in vps server ?

  • @codedance856
    @codedance856 6 лет назад

    did anyone have issues due to http and not https request?

  • @aqibfayyaz1619
    @aqibfayyaz1619 4 года назад

    Thank you

  • @cutiel2692
    @cutiel2692 5 лет назад

    what inmotion plan do you have?

    • @TraversyMedia
      @TraversyMedia  5 лет назад

      I actually have a reseller account with many different sub accounts. I also have a VPS with them.

    • @cutiel2692
      @cutiel2692 5 лет назад

      @@TraversyMedia is a2hosting no good?

  • @vitaliiche2706
    @vitaliiche2706 6 лет назад

    Thanks, Dude!

  • @sandman7155
    @sandman7155 7 лет назад +2

    The mouse pointer is distracting, not gonna lie.

    • @TraversyMedia
      @TraversyMedia  7 лет назад +1

      Sorry about that

    • @sandman7155
      @sandman7155 7 лет назад +2

      It's ok, I'm not complaining, just... noticing :)

    • @Assassunn
      @Assassunn 7 лет назад

      Watch the whole video and didn't notice it before lol

  • @geethureghunath8380
    @geethureghunath8380 5 лет назад

    Routing is not working after build. Can anyone help me ?

    • @bimalpariyar3732
      @bimalpariyar3732 5 лет назад

      github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/api/BrowserRouter.md

  • @marks3208
    @marks3208 7 лет назад

    first