How To Build A URL Shortener With Node.js, Express, and MongoDB

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 304

  • @abdullahirfan3078
    @abdullahirfan3078 3 роки тому +26

    The amount of clarity in this tutorial is just amazing. The way you teach the way you explain all the stuff.... It's just simply jumps into mind

    • @SilvaOnTube
      @SilvaOnTube 10 місяців тому

      Maybe 2 years ago, but not now.

    • @abdullahirfan3078
      @abdullahirfan3078 10 місяців тому

      @@SilvaOnTubeI have commented 2 years ago😉

    • @SilvaOnTube
      @SilvaOnTube 10 місяців тому

      @@abdullahirfan3078 I know, that is exactly my point.

    • @bruvhellnah
      @bruvhellnah 9 місяців тому

      @@SilvaOnTube Still a great tutorial by today's standard what are you talking about bruh

  • @glorysinkhonde197
    @glorysinkhonde197 2 роки тому +27

    For those doing the tutorial in 2022, "sr-only" has been replaced with "visually-hidden" in bootstrap

    • @RajeshSays
      @RajeshSays Рік тому +1

      Thanks. Can you also help how to use nanoid in place of shortid (as it is depreciated). Thanks

    • @dmusic9465
      @dmusic9465 Рік тому

      What about table-responsive

    • @glorysinkhonde197
      @glorysinkhonde197 Рік тому

      @@dmusic9465 Don't know, try googling it, that's how I found out when it didn't work

  • @mohammedsayeed330
    @mohammedsayeed330 4 роки тому

    The Way he writes code..its beautiful 😊 to watch

  • @frankorefice4115
    @frankorefice4115 4 роки тому +7

    Did this using react for the front-end back in August. It took me a while since I was new to using MongoDB at the time but I was satisfied when I got it done.

  • @mobileeats-q2i
    @mobileeats-q2i Рік тому

    @14:15, I'd recommend adding a then statement after mongoose.connect with a console log message to verify the connection to MongoDB. Aside from that, great tutorial!

    • @ananyagouda8200
      @ananyagouda8200 Рік тому

      hey, about this, my mongodb connection is failing. could you give some more insight

    • @timstongaming
      @timstongaming 4 місяці тому

      Yes same

  • @JohnWeland
    @JohnWeland 4 роки тому +14

    Awesome video, I'd love to see it expanded to maybe have a login screen (for the UI) and protected routes with JWT or something.

  • @EnesKab
    @EnesKab 3 роки тому +8

    These kind of micro projects are great for connecting the dots for beginners like me. Thank you very much for that. Also I love how you setup the dev environment from the very beginning all the time. Appreciate it !

    • @SilvaOnTube
      @SilvaOnTube 10 місяців тому

      Not when dependencies deprecate and there is no help getting around that.

  • @veronicarivera1352
    @veronicarivera1352 4 роки тому +8

    This is a great project. One thing I would add is the ability to Delete one of the short URLs if you don't need it anymore. Thanks for sharing.

    • @ncscorp3538
      @ncscorp3538 4 роки тому +2

      U can create a route (REST) for delete... create a function, something like this in your backend:
      async destroy(req, res){
      const id = req.params.id
      let shorturl= await ShortUrl.findById(id);
      if(!shorturl){
      res.json({"message": "some message error"});
      }
      shorturl = await ShortUrl.findByIdAndDelete(id);
      return res.json(shorturl);
      }
      and your front just add a function that will delete in a button:
      async function handleDeleteUrl(){
      const response = await api.delete(`/shorturls/delete/${props.match.params._id}`);
      setShortURL(response.data);
      props.history.push('/');
      }
      {...}
      Delete
      PS: I used react for this tutorial.

    • @DameDiabolique
      @DameDiabolique 4 роки тому +1

      @@ncscorp3538 Thanks for sharing this with us.

  • @bafana_mhlamvu
    @bafana_mhlamvu 4 роки тому +1

    A YEAR OF FREE HOSTING?!?!?! NANI!?!

  • @onyekaogbusuo3157
    @onyekaogbusuo3157 Рік тому +1

    I don't know what to say... You guys save lives... I'm so emotional, thanks for all you do for the community kyle

  • @robertbornschein5583
    @robertbornschein5583 4 роки тому +11

    Just wanted to let you know, I voted for a backend project on your poll, so psyched for this👌🏼👌🏼👌🏼

    • @WebDevSimplified
      @WebDevSimplified  4 роки тому +4

      Nice! I plan to make more backend tutorials like this in the future.

    • @robertbornschein5583
      @robertbornschein5583 4 роки тому

      @@WebDevSimplified
      Maybe do an extended video on fetch or http request in general, talking about how to handle basic authorization, etc.

  • @prabaljainn
    @prabaljainn 2 роки тому +1

    Kyle, I know you know, mention optimizations also as Key-Value storage is better then DOCUMENT based storage in this type of Design. + you need attach some meaning to the hashed value as if you shorten a link 5 number of times the system will generate 5 different ids to that single URL.

  • @shawnlee5956
    @shawnlee5956 4 роки тому

    thanks for the free teaching video for those who have financial kids to bring up their future dreams.

  • @rebarius
    @rebarius 4 роки тому +2

    short hint: you can use mdl (material-design lite) like bootstrap and it's design is exactly material design. I for example don't like bootstrap ^^ but for the backend part: THX a lot 💙

  • @roku1892
    @roku1892 3 роки тому

    the best programming channel on youtube that i found 👍❤️

  • @RiversDelay
    @RiversDelay 4 роки тому +58

    if you run npm init -y it fills in the defaults automatically, no need to press enter a bunch of times

  • @threeone6012
    @threeone6012 4 роки тому +1

    Thanks Kyle for another ★★★★★ upload!
    *Video Request:* Error handling and logging with Express.

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg 11 місяців тому +1

    Very Nice explanation sir, Thank you!

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz 3 роки тому

    If you could add a Short Introduction or Functioning of how final project will look, That will be a huge plus point @Kyle

  • @rebarius
    @rebarius 4 роки тому +1

    And for the mongo-schema: timestamps would be good to add, that you can see when a url was shortened. it's just a built-in { timestamps: true }

  • @fndfernandu
    @fndfernandu 2 роки тому

    This video is awesome! I'm learning so much with you!

  • @kk10-
    @kk10- 2 роки тому

    Dude, This was so amazing!!! Made my day!

  • @mverma7845
    @mverma7845 4 роки тому +1

    Thanks Kyle, new to development I enjoyed this.

  • @kdkchy
    @kdkchy 3 роки тому +1

    the tutorial is so smooth (y)

  • @eddyelamin9015
    @eddyelamin9015 2 роки тому

    can't get clearer than that great project

  • @saiyedali561
    @saiyedali561 4 роки тому

    Easy , clear , modern tools . amazing !

  • @Norfeldt
    @Norfeldt 4 роки тому +19

    Fantastic tutorial! Absolutely loved it!
    Any chance of a follow-up where you teach us how to deploy it?

    • @SilvaOnTube
      @SilvaOnTube 10 місяців тому

      It's terrible when people fawn all over tutorials then the creator never updates it and 2-3 years go by. He should either remove this or update it or explain the many problems anyone faces today trying to follow his tutorial. Terrible.

  • @sonoftroy8572
    @sonoftroy8572 4 роки тому +1

    Wow pretty cool man! I’m still working on my MVC PHP OOP MYSQL DATABASE, just grinding and learning the process

  • @raymondmichael4987
    @raymondmichael4987 4 роки тому +6

    Dude that was intense, thanks a lot.
    Please, can you HEROKU this, to make it full, from local to live.
    There're tips and tricks in handling deploying to heroku we can learn from you in a simplified manner.
    Thanks again,
    Greetings from Tanzania 🇹🇿

    • @brunoalexandre2352
      @brunoalexandre2352 4 роки тому +8

      1. on "server.js" file, change "mongodb://localhost/urlShortener" to process.env.MONGO_URL || "mongodb://localhost/urlShortener"
      2. in package.json create a "start" script with "node ./server.js"
      3. create a free Heroku account
      4. create a free Heroku app
      5. add free MongoDB in "Resources" under your Heroku application settings
      6. commit changes and deploy to Heroku (follow "Deploy" steps)
      7. you're done, enjoy!
      created a PR so you can see the changes and a nice "Deploy to Heroku button"
      github.com/WebDevSimplified/url-shortener/pull/1

    • @alvinqingxing
      @alvinqingxing 4 роки тому +1

      @@brunoalexandre2352 Thanks so much!

  • @LinkChenTW
    @LinkChenTW 4 роки тому +7

    Nice tutorial! But there is a little problem that I got lost since 19:23 , the page didn't reflash and keep loading. Finally I googled a lot and I've solve the problem. I didn't install anything about MongoDB.
    I got the same problem in another tutorial "How To Build A Markdown Blog Using Node.js, Express, And MongoDB
    " few days ago. I guess this is the same problem: I didn't install MongoDB first.

    • @csablons
      @csablons 4 роки тому

      Thanks. I get the same problem.

    • @JuandeLellis
      @JuandeLellis 4 роки тому

      first you need to install mongo db on the project or in your computer?

    • @ahmadmuslih
      @ahmadmuslih 4 роки тому

      you need to install mongod in your computer and run the db by writing mongod in the terminal

  • @SoundsOfAum
    @SoundsOfAum 4 роки тому

    Bro you are so awesome I really like your videos, the explanation is so good and easy to understand. Keep Making Node.js and Mongo db videos.

  • @jeremyopriasa9961
    @jeremyopriasa9961 3 роки тому

    Very clear!! Thank you Kyle!

  • @prajalbadjatya
    @prajalbadjatya 4 роки тому +1

    Awesome Video !
    Thank You very much !!

  • @rootdev8106
    @rootdev8106 4 роки тому +1

    Nothing new to me, but I love your style of coding and explaining! That's why I'm watching all of your videos

  • @kennyakins3536
    @kennyakins3536 4 роки тому +1

    This is nice, I Love this, we need more projects👍🏾

  • @pritishmaheta9435
    @pritishmaheta9435 2 роки тому

    To the point and really amazing way of explaining stuff !

  • @user-ev2pl8ey2r
    @user-ev2pl8ey2r 4 роки тому

    Thanks, I'm beginner in node.js, and this tutorial helped me a lot!

  • @TheoParis
    @TheoParis 4 роки тому

    I personally like monk for connecting to mongodb because it is simpler than using schemas.

  • @143_nimit6
    @143_nimit6 2 роки тому +6

    If anyone is not able to hide URL lable.
    replace sr-only To visually-hidden

  • @_timestamp
    @_timestamp 4 роки тому

    You are a very good teacher :)👍🏻

  • @tacowilco7515
    @tacowilco7515 4 роки тому

    Thank you very much, Kyle! Great video.

  • @Sksahu_123
    @Sksahu_123 3 роки тому

    more backend please

  • @matrikater
    @matrikater Рік тому +1

    coffee + 2 AM + no_sleep == website!

  • @Richard_Schmidt
    @Richard_Schmidt 3 роки тому +5

    Great tutorial. Can you also show how to deploy it on AWS or GCP? Thank you :)

  • @mehdismaeili3743
    @mehdismaeili3743 27 днів тому

    Excellent .

  • @punch3n3ergy37
    @punch3n3ergy37 4 роки тому +4

    Nice one. It would be cool though, to show how to make this on a live web page!
    Because i have no idea how i can transfer it to my live web page. Do i have to use MySQL then or what?...

    • @JoshChagani
      @JoshChagani 4 роки тому

      I second this. I feel like process.env.PORT is always brought up but not really shown in production.

    • @WebDevSimplified
      @WebDevSimplified  4 роки тому +1

      Checkout my Node.js fullstack tutorial for an explanation on how to deploy to a live site.

    • @punch3n3ergy37
      @punch3n3ergy37 4 роки тому +1

      @@WebDevSimplified Hi. Me again. So i took on this project and i am getting an error at this step 19:27, when i click on shorten, nothing happens and the console in visual studio code shows "UnhandledPromiseRejectionWarning: MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017"
      I've googled it, and it seemed like it had to do with mongodb not being installed, so i've installed it but it still doesn't work. Do you have any idea what could cause this problem?

    • @alekyakowta7122
      @alekyakowta7122 4 роки тому

      @@punch3n3ergy37 maybe if you open cmd and type "mongod" and then run, it might work.

  • @bishopshawiii7292
    @bishopshawiii7292 4 роки тому

    Awesome content...learning so much. Thank you

  • @TheOPtmal
    @TheOPtmal 4 роки тому +18

    You forgot to mention: you need mongodb-server too, because the npm package is just the client

  • @asafhagbi3638
    @asafhagbi3638 4 роки тому

    Wow! Thanks!! I find it very informative. 😎

  • @aadishjain8827
    @aadishjain8827 2 роки тому

    thankyou for this tutorial

  • @usama57926
    @usama57926 4 роки тому +1

    great tutorial

  • @callmejd9665
    @callmejd9665 4 роки тому +13

    I have one question about shortId: How is it guaranteed that the generated Id is unique everytime? Since it isnt based on the full url or on the database, Im kind of confused.
    Apart from that: Thank You for all these great videos! I really like the way you're always starting from ground zero and taking things step by step from there. Keep doing what you're doing!

    • @devilmanscott
      @devilmanscott 4 роки тому +1

      You're right, you should use the full URL to make those IDs, though the likeliness of a collision is very low.

    • @t_kon
      @t_kon 4 роки тому

      A hashing function would be good.

    • @KenKoyVlogs
      @KenKoyVlogs 4 роки тому +1

      try to check the shortid package from npmjs website.
      The package described this "Can generate any number of ids without duplicates, even millions per day."

    • @GottZ
      @GottZ 4 роки тому +1

      ​@Rob Hogan uniqueness just requires evaluation. you either have to do seeded randomness that is proven and checked to not collide until N reaches a certain number or alternatively id's have to be constrained with "unique" in database management systems to prevent insertion of doublettes.
      all in all i see no point in blindly trusting code i didn't write myself. thus why i ended up here and even found this github issue.
      in case of this url shortener it wouldn't be hard to just evaluate newly created id's for existence.

    • @KenKoyVlogs
      @KenKoyVlogs 4 роки тому

      @@GottZ this is sad.. didn't use this package anyways xD

  • @moviesasylum8531
    @moviesasylum8531 7 місяців тому +1

    for those trying in 2024, as beginner i think it would be waste of time, after watching 19 mins, i have to drop this video. not upto dated

    • @moviesasylum8531
      @moviesasylum8531 7 місяців тому

      bootstarp 5 is will not work, give error, mongoDB connection not shown

  • @pratiknalawade3267
    @pratiknalawade3267 4 роки тому +2

    Dude that was great, thanks a lot.
    Please, can you HEROKU this, to make it full, from local to live.
    we can learn from you in a simplified manner.

  • @andres98
    @andres98 4 роки тому

    Really good video 10/10

  • @bhavyasura
    @bhavyasura 3 роки тому

    Smooth AF....but the clicks only increment after I reload my page manually....is there any solution?

  • @lexasusopra8704
    @lexasusopra8704 4 роки тому +4

    what about the mongodb db? should we create it or it created automateclly with the setup you did?
    i used to use mongo atlas so i dont know how local db work.

    • @dibashthapa4773
      @dibashthapa4773 4 роки тому

      Type mongo
      type use yourdb
      type show collections
      db.collectionName.find()

    • @manofqwerty
      @manofqwerty 4 роки тому +1

      If you don't have it installed, you'll have to install MongoDb on your local machine. Otherwise, using Atlas (free version) and using the available connection string will work just fine.

    • @lexasusopra8704
      @lexasusopra8704 4 роки тому

      ty@@manofqwerty

  • @BlackberryBoy
    @BlackberryBoy 4 роки тому

    Great tutorial I was able to created it and it works great. Next I have to add authentication. Do you have tutorials on that?

  • @pranjaldoorwar9743
    @pranjaldoorwar9743 4 роки тому

    That is a useful project for beginners 😍

  • @Dracolmao_
    @Dracolmao_ 3 роки тому

    Kyle: redirects instantly
    Everyone: H0w 2 ads? mE nEeDs M0n1

  • @mysterbirdtrooper6516
    @mysterbirdtrooper6516 4 роки тому

    I didn't know the name attribute could be used to access specific input values on req.body.
    Neat.

    • @brunoalexandre2352
      @brunoalexandre2352 4 роки тому

      if you do a console.log(req.body) you would see that's just an object with params as that's how a form will post :)

  • @Samuels691
    @Samuels691 4 роки тому

    Npm init -y is helpful to skip taps :)

  • @vallimayilm2964
    @vallimayilm2964 Рік тому +1

    Hi, This code working on local machine but when i put the code in live server its showing an error

  • @akashshrivastav1518
    @akashshrivastav1518 4 роки тому +1

    how make it such that the shortened url is sharable ? or accessed from anywhere

  • @CodePhilipYT
    @CodePhilipYT 4 роки тому +1

    Maybe its a dumb question, but where is the database stored? Or for example, with your other project "Mybrary" we needed to connect the Database to MongoDB Atlas, for Heroku to have a connection to a database.
    In this project its all on localhost, could I just add this Code to my domain and it would work? What would I put in the mongoose function: mongoose.connect('URL')?

  • @NickDavies100
    @NickDavies100 4 роки тому +1

    I couldn't get to work. Would start hanging after adding in await and async functions. Not sure if I installed Mongo correctly :(

  • @africanchina1
    @africanchina1 3 роки тому

    Lesson starts at 1:25

  • @firmandwip14
    @firmandwip14 4 роки тому

    if you get error just npm install shortid in terminal

  • @jakubdornicak9125
    @jakubdornicak9125 4 роки тому

    THANKS UR BEST!!!!!!

  • @gradientO
    @gradientO 4 роки тому +1

    A video about Deno?

  • @syedfurqaniqbal1592
    @syedfurqaniqbal1592 3 місяці тому

    When I give any url in input field all the time it is showing please enter the url although I have written correct code

  • @ygi6106
    @ygi6106 6 місяців тому

    thanks codebro

  • @DarbazDara
    @DarbazDara 3 роки тому +4

    I love this tutorial but.... i guess its not working anymore.... I did follow the same steps exactly. and i faced few issues first was with Bootstrap where some of the classes been removed from the new bootstrap and then other functions is not working and it doesn't let me run the server anymore... I don't know if this is only me or everyone else have same issue

    • @brianogas5245
      @brianogas5245 3 роки тому

      well I feel a little bit less stupid now, I given up trying to find out where my code was broken... it's like this is not the right implementation now

    • @DarbazDara
      @DarbazDara 3 роки тому

      @@brianogas5245 same here bro LOL ... the thing is with mongoose there is some functionality has been changed with the new version. so if you want to follow up on the older version you need to install the mongoose same version as its in the tutorial.
      BUT better thing is if Kyle make's an updated version video :D

    • @LiftTrue
      @LiftTrue 3 роки тому

      I'm new here, and I also have the same problems with mongodb, I don’t know how to fix it :(

    • @Max-mo9mf
      @Max-mo9mf 2 роки тому

      Bootstrap is probably on a new version hence Kyle mentions some deprecrated classes.
      About the server not running: Not sure if you have the exact same issue as i had, but lots of people some to run into similar issues: make sure you have MongoDB (Community Edition) installed on your machine. Check out either one of following guides on how to do that:
      www.mongodb.com/docs/guides/server/install/
      www.mongodb.com/docs/manual/administration/install-community/
      Maybe you already installed MongoDB but i'll mentoin it anyways since i was getting lost until i realized the obvious: that i had to install MongoDB on my computer first, haha

    • @richardisrael9552
      @richardisrael9552 2 роки тому

      @@Max-mo9mf I had mongodb on my computer and even connected to it but was facing an issue "ShortUrl.find() not a function"

  • @minstreet_studio6265
    @minstreet_studio6265 4 роки тому +5

    this i beautiful, kyle please how do we charging credit cards for each purchase that is made please please do a video on that

    • @WebDevSimplified
      @WebDevSimplified  4 роки тому

      I have a project on Stripe you can checkout with this.

  • @snehikareddykunta8995
    @snehikareddykunta8995 2 роки тому

    May I know how to add new page automatically to navigation bar using node js?

  • @sandeepmishra5145
    @sandeepmishra5145 4 роки тому

    Awesome tutorial...loved it..bt i have one issue when i am clicking on shorturl to open in new page it can't open....??

  • @logantheyoyoman
    @logantheyoyoman 4 роки тому +1

    Awesome video! Just a quick question. How does shortid.generate() know about all it’s previous generations if it does not know about the rest of the database. I understand it know about a history of a given sever session but what is the server stopped and started. Again amazing video! This is left me Curious.

    • @HassanMehdi98
      @HassanMehdi98 4 роки тому +2

      A quick solution would be to check for that newly generated shorturl in the database before assigning it to any full url. That way we can make sure if that url is going duplicate we can generate a new one

  • @AgustinAstronomy
    @AgustinAstronomy 4 роки тому

    you are amazing, thank you!

  • @nileshinkane6034
    @nileshinkane6034 4 роки тому +2

    You used mongoose.connect() function without starting a mongo server. Is that possible?

    • @StanislavZaburdaev
      @StanislavZaburdaev 4 роки тому +4

      When installing MongoDB, you can check the option "Install MongoD as a Service". That's what makes it possible.

    • @nileshinkane6034
      @nileshinkane6034 4 роки тому

      @@StanislavZaburdaev Thanks 😁

  • @ishan7824
    @ishan7824 3 роки тому

    Thanks for this amazing tutorial.

  • @sametpalitci1273
    @sametpalitci1273 4 роки тому

    thank you

  • @wesson818
    @wesson818 4 роки тому +5

    Great video Kyle. I try to follow it and run after I done. But I got this error "UnhandledPromiseRejectionWarning: MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017". Do you or anyone have idea how to fix this and run code on localhost:5000?

    • @bilalkureshi7437
      @bilalkureshi7437 3 роки тому

      Do you have mongo on your pc?

    • @Max-mo9mf
      @Max-mo9mf 2 роки тому

      I think i had the same issue, make sure you have MongoDB (Community Edition) installed on your machine. Check out either one of following guides on how to do that:
      www.mongodb.com/docs/guides/server/install/
      www.mongodb.com/docs/manual/administration/install-community/
      Maybe you already installed MongoDB but i'll mentoin it anyways since i was getting lost until i realized the obvious: that i had to install MongoDB on my computer first, haha

    • @SatyamCodesss
      @SatyamCodesss 2 роки тому

      @@Max-mo9mf and replace the local host with that host no.

    • @Max-mo9mf
      @Max-mo9mf 2 роки тому

      @@SatyamCodesss i believe that :27017 port is used for your database connection, so your localhost should be something different than that, for example :5000 or something else you prefer, as long it's not the same as your database port or another port that's already in use

  • @YTSprocx
    @YTSprocx 4 роки тому +3

    I had an error... nodemon] starting `node server.js`
    (node:38724) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: connect ECONNREFUSED

    • @Max-mo9mf
      @Max-mo9mf 2 роки тому

      Not sure if you have the exact same issue as i had, but make sure you have MongoDB (Community Edition) installed on your machine. Check out either one of following guides on how to do that:
      www.mongodb.com/docs/guides/server/install/
      www.mongodb.com/docs/manual/administration/install-community/
      Maybe you already installed MongoDB but i'll mentoin it anyways since i was getting lost until i realized the obvious: that i had to install MongoDB on my computer first, haha

  • @LexterCarlAlmirol
    @LexterCarlAlmirol 10 місяців тому

    How to include meta tags when shortening url?

  • @erlendryan
    @erlendryan 4 роки тому

    Fuck yeah, back-end stuff 👍

  • @davidjunghan91
    @davidjunghan91 4 роки тому

    Thanks!

  • @abhilashkokkonda1713
    @abhilashkokkonda1713 4 роки тому

    is this a production ready solution?

  • @andresramirez4469
    @andresramirez4469 3 роки тому

    This can be done without MongoDb, node or express right?

  • @juancarlosnunez9388
    @juancarlosnunez9388 4 роки тому

    Awesome! 👏 More projects like this, please

  • @kevinorlando4932
    @kevinorlando4932 10 місяців тому

    can i copy that short url and send it to someone and it works?

  • @khotambakhromov
    @khotambakhromov 4 роки тому

    wow, amazing

  • @monireol
    @monireol 4 роки тому

    Thanks

  • @DragonStoneCreations
    @DragonStoneCreations 4 роки тому

    Though it's highly unlikely to get the same shortened URL for two different URLs, it is still possible.. so shouldn't you verify everytime that a shortened URL doesn't already exist in the database ?

  • @kmgulsaba2361
    @kmgulsaba2361 4 роки тому +2

    sir, if we have to display shor url on server then we need to call ShortUrl.find() but an error show up on cmd that ShortUrl.find is not a function . please sir explain it

  • @sujoykrhaldar
    @sujoykrhaldar 4 роки тому

    plz create a node js tutorial course

  • @acine4594
    @acine4594 4 роки тому

    I have a question about is MEAN stack develpper a good choice to creat web app

  • @d3_xd900
    @d3_xd900 Рік тому

    I have a question, so can this url shortener IP log? if so, is there a way to not have it where anyone can manipulate to ip log?

  • @abdulhamidkhorajiya2256
    @abdulhamidkhorajiya2256 4 роки тому

    excellent videos

  • @csablons
    @csablons 4 роки тому +2

    If you have error message during the tutorial maybe it's because you haven't installed MongoDB. mongoose doesn't do it.
    Kyle did a video about this :
    ua-cam.com/video/wcx3f0eUiAw/v-deo.html

  • @RajeshSays
    @RajeshSays Рік тому

    Hi Kyle, Thank you for such an informative video on url shortner. But while following your code, I found that "shortid" has now been deprecated. So I was trying to use nanoid instead, but require statement is not working for that. Could you please help me with the updated code and how I can use nanoid in this project? Any help would be much appreciated. Thanks!