potato coder
potato coder
  • Видео 4
  • Просмотров 22 842
Journey To Full-stack Typescript: Simple CRUD with NestJS and MongoDB
FIRST PART OF THE VIDEO:
bit.ly/2xQBEQ9
PROJECT GIT REPO:
github.com/GregFuntera/movie-project-with-mongodb
In our previous video we’ve created a simple project that can fetch, delete and add some data in our mock list.
Now we will try to store them locally in a database.
We will be using MongoDB as our database for this project.
We’ll continue to enhance our previous project to perform a simple CRUD database app.
REFERENCES:
Nest Documentation Link: docs.nestjs.com/
Nest MongoDB Guide: docs.nestjs.com/techniques/mongodb
Nest Pipes Guide: docs.nestjs.com/pipes
MEDIA:
Sounds: bit.ly/2N87yNW
Big thank you! for watching the video :D
Просмотров: 3 891

Видео

Journey To Full-stack Typescript: Getting Started with NestJS
Просмотров 2,3 тыс.6 лет назад
SECOND PART OF THE VIDEO: ruclips.net/video/A2_2UMvoIBQ/видео.html Sharing my learning journey to be a full-stack typescript developer. We will be using nestJS a nodeJS framework for building our basic server side application. Full guide can viewed here: bit.ly/2BMcPdp FOR REFERENCE NestJS link: nestjs.com/ Nodemon link: nodemon.io/ Download Postman here: www.getpostman.com/ Project Repo: githu...
Deploy Your NodeJS Project Using Heroku
Просмотров 2196 лет назад
Full guide here: bit.ly/2v9sTQT Before we get started install/register these: Here's the link for the Express Generator: expressjs.com/en/starter/generator.html Here's the link for Nodemon: nodemon.io/ Here's the link for the Heroku: www.heroku.com/ Here's the link for the Heroku CLI: devcenter.heroku.com/articles/heroku-cli Content for .gitignore file: # OS X .DS_Store* Icon? ._* # Windows Thu...
Deploy Angular 6 Project Using Heroku
Просмотров 16 тыс.6 лет назад
Easily deploy your angular project using heroku. Creating your heroku account and deploying your project through CLI. Adding scripts in package.json to build and deploy your project in heroku. View full guide here: bit.ly/2LTDNUk server.js file Copy here: pastebin.com/3N9LaN3L To Know more about creating and deploying projects through heroku you can visit these pages: devcenter.heroku.com/artic...

Комментарии

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

    Awesome video i am very thankfully @potato coder..can i get some more video for middle ware and repository (DOA).

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

    OMG you save my life thanks you

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

    after running git push heoku master , build is failing i dont know why, i checked versions and all but not working

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

    how to update heroku angular app (update app upload again)

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

    My left ear enjoyed the video

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

    Thanks for that cool video.

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

    Thanku sooooo much 😍😍

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

    Background music is soo annoying.

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

    This was very useful. Thanks!

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

    What is the purpose of the annoying hee haw background music?

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

    Cool, thx

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

    Thank you for your video, but i still have at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=******** request_id=07a37fed-bb8f-49e8-853b-5f341040d0c9 fwd="********" dyno= connect= service= status=503 bytes= protocol=https error. Do you have any idea?

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

      i replaced the host and fwd to stars :D

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

    Straight forward, easy to follow especially for those who run into problem when executing the heroku open action. Thank you so much. Deserves more thumbs ups!

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

    Its 4am and i just found your channel, and honestly, i love your videos more than others that are out there, the script for the videos and the guided tutorial makes it very direct, not wasting time at all! Its like reading a documentation, and i love it! Keep up the good work! As a next video suggestion, i would suggest to implement JWT, and with that you would had a basic back end for your app.

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

    Thank a lot for you this video series. Could you please hint how to implement Faker correctly in nestJS?

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

    Hello, potato, I have followed your code and I am sure I am really close to achieving my goal. Nevertheless, I am getting an error (even though the build is well done): 2018-11-16T08:04:50.581584+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myurl.herokuapp.com 2018-11-16T08:04:51.294450+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myurl.herokuapp.com Do you know what s going on?

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

      I am also facing the same issue. My app run locally if I start the server or ng serve it. But when I push to Heroku I have this very same error on the log file.

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

      @@rodrigonormando7371 I do not remember exactly how but I think I solved yesterday. My problem was that I was not truly installing express so I reinstall everything with npm I. After it, I build my self the project with ng build --prod --build-optimizer to check that I was actually able to do it, and I got few errors in my code. After correcting then, this error disappeared. Now I m facing another error, but at least this one was solved (my project is not an empty one)

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

    thanks for the video. I had to modify the server.js to work for me instead of: // Replace the '/dist/<to_your_project_name>' app.use(express.static(__dirname + '/dist/<to_your_project_name>')); app.get('*', function(req,res) { // Replace the '/dist/<to_your_project_name>/index.html' res.sendFile(path.join(__dirname + '/dist/<to_your_project_name>/index.html')); i used // Replace the '/dist/<to_your_project_name>' app.use(express.static(__dirname + '/dist/')); app.get('*', function(req,res) { // Replace the '/dist/<to_your_project_name>/index.html' res.sendFile(path.join(__dirname + '/dist/index.html')); and then it worked, hope this helps somebody.

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

      gracias... tenia el mismo problema...

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

      Thanks. It works great for me. All the same, the final touch was that I had to remove all the "ng Build" from the 'package.json' file since Heroku has the full Heroku/NodeJs building AddOn package. Before then, I was always getting the error message that "ng not found" and my deployment fails. My frontend app is developed with an angular 7.0.2 version. Here is a part of my 'package.json' text in case someone else needs it. Pay attention to the "scripts" part. INSTEAD OF: { "name": "xyz", "version": "1.0.0", "license": "Apache", "engines": { "node": "10.16.3", "npm": "6.9.0" }, "scripts": { "ng": "ng", "start": "node server.js", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "postinstall": "ng build --aot --prod" }, ....... ...... I NOW HAVE: { "name": "xyx", "version": "1.0.0", "license": "Apache", "engines": { "node": "10.16.3", "npm": "6.9.0" }, "scripts": { "start": "node server.js" }, "private": true, "dependencies": { "@angular-buddies/prettier": "^1.0.0-alpha.3", "@angular/animations": "7.0.2", "@angular/common": "7.0.2", "@angular/compiler": "7.0.2", "@angular/core": "7.0.2", "@angular/forms": "7.0.2", "@angular/http": "7.0.2", "@angular/platform-browser": "7.0.2", "@angular/platform-browser-dynamic": "7.0.2", "@angular/router": "7.0.2", "@ng-bootstrap/ng-bootstrap": "4.0.0", "@ngx-translate/core": "11.0.0", "@ngx-translate/http-loader": "4.0.0", "ajv": "^6.9.1", "chart.js": "2.7.3", "core-js": "2.5.7", "express": "^4.17.1", "font-awesome": "4.7.0", "ng2-charts": "1.6.0", "node": "^10.16.3", "npm": "^6.9.0", "path": "^0.12.7", "rxjs": "6.3.3", "yarn": "1.12.1", "zone.js": "0.8.26" }, "devDependencies": { "@angular-devkit/build-angular": "^0.13.8", "@angular/cli": "7.0.4", "@angular/compiler-cli": "^7.2.14", "@angular/language-service": "7.0.2", "@types/jasmine": "2.8.9", "@types/jasminewd2": "2.0.5", "@types/node": "10.12.2", "codelyzer": "4.5.0", "husky": "^0.14.3", "jasmine-core": "3.3.0", "jasmine-spec-reporter": "4.2.1", "karma": "^4.1.0", "karma-chrome-launcher": "2.2.0", "karma-cli": "1.0.1", "karma-coverage-istanbul-reporter": "2.0.4", "karma-jasmine": "1.1.2", "karma-jasmine-html-reporter": "1.4.0", "lint-staged": "^7.1.2", "prettier": "^1.12.1", "protractor": "5.4.1", "ts-node": "7.0.1", "tslint": "5.11.0", "typescript": "3.1.1" } }

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

    Awesome video... Thanks for your sharing! Keep going. I'm waiting to see more :)

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

      Hello, SH Guitarist thank you so much for your feedback. Will do my best to upload a new video with good content. Once again thank you :D

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

    You are a legend! Great work here again.

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

      Hello Fred, thank you so much for your feedback. Hope the video helped you :)

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

    Thank You...u made the work so simple.

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

    You’re a life saver!

  • @sb.4921
    @sb.4921 6 лет назад

    Why is routing not working after deployment? please check this link vvork.herokuapp.com/

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

    I am receiving an error.. Application error and the logs show this :heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/"

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

      Hello Dwayne, sorry haven't encountered this yet did you find a fix?

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

      @@potatocoder3218 yes i do have the same

  • @sb.4921
    @sb.4921 6 лет назад

    Wonderful ! I Appreciate this helpful tutorial

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

    Amazing video man, Thank you for sharing and going through this process. If you are looking for other things to make tutorials setting up the flow of the DTO objects to a MongoDB would be cool.

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

      Hi Fred C, sure! will try to upload a video regarding on MongoDB + NestJS. Sorry I'm just busy in these past weeks will try my best to upload a good content. Thank you also

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

      potato coder Don't you dare apologize to me! You are rocking it! Thanks for the new video :)

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

    Thanks for video sharing! can you please make video with nestjs authentication with angularjs login

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

      Hello, Asad Mehboob thanks you also for the comment. Sure! will do that in the future video. Once again thank you and really appreciated your time watching the video.

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

    Thanks for sharing the video. I am very happy to watch this video and one more thing, Can you tell me how to update the particular movie?

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

      Hello Sulthan Mamusa, you can use the @Put() decorator and have a function that will update the movies maybe using also a query string to get the id of movie and have a DTO to map the objects that you need to update. You can use the @Body() classDTO for the mapping the object to you wan to update. I'm very thankful that your happy with the happy. Hoping that you will also interest with the framework :D

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

    I followed all the same steps but when running "heroku open" command its shows not found

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

      Muhammad Haseeb you need to install heroku CLI, devcenter.heroku.com/articles/heroku-cli

    • @m.haseebkhan5852
      @m.haseebkhan5852 6 лет назад

      its already installed. still i reinstall it. but having same issue after" heroku open" command not found. what to do now?

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

      Hello, M.Haseeb Khan have you tried running in your terminal 'heroku open --app <your_heroku_proj_name>' to view the list of your apps run 'heroku apps' here's a reference: stackoverflow.com/questions/12479668/heroku-open-no-app-specified Alternatively you can view your deployed heroku project in your browser at '<your_heroku_proj_name>.herokuapp.com'

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

      I have the same issue as Muhammad Haseeb. I did everything like in the video and I have also installed Heroku CLI locally. It says that the deploy is done, but when open the application 'heroku open --app <your_heroku_proj_name>' it returns 404 - not found. Running heroku apps command says that I have the expected app.

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

      Hello Stanish Chankov, have you tried manually opening your app via url '<your_heroku_proj_name>.herokuapp.com', alternatively you can check the status of your website in your heroku dashboard.

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

    thanks! This works like a charm

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

    Thanks, you saved my sanity. I've been trying all week: blogs & courses but they're outdated.

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

      Appreciated your feed back from this video. Thank you