I'm surprised this video doesn't have more views.... It's probably the most detailed and concise tutorial I've found on node and express. Great explanations, other tutorials I've seen are just do this do that... no explanation involved.
@starmachines5 жыл бұрын
Bahadir, this tutorial is exceptional. In particular, your explanations are very thorough and easily understood. Thanks for doing this.
@kevingagnon12345 жыл бұрын
Excellent video. I spent my entire Saturday and only got through 2/3rds of the video. I'm a newbie to Node.js and Express and was looking for a good framework to use for the #AVRSpy project I'm working on. Although I've opted for SQLite without Sequelizer for my project, I've been able to parallel your app with the smaller db. I truly appreciated the MVC approach you took with a basic Express generator app. Taking Sequelizer out of the picture has left me unsure how to utilize the "models" feature if I'm going to use SQLite though. Right now, I'm doing all of the work from the Controllers js files. Thanks again for a great video: I only had to hit pause and say 'WHAT DID HE JUST DO?' about 234 times.
@millisock5 жыл бұрын
0:08 "We will then deploy our application to AWS using Elastic Beanstalk environment." Is the AWS deployment done in another video?
@buzzminkyunghoon38565 жыл бұрын
this is where No One Replies except other helpless people
@alwaysgreener28564 жыл бұрын
@@buzzminkyunghoon3856 you need to find the article in AWS explaining you how to use the eb cli. Worked for me.
@salibaray4 жыл бұрын
@Buzz_Team - at 21:25 , when I edit the Package.JSON to change the scripts start line to include nodemon, I keep getting error "$NODE_ENV was unexpected at this time." when I do 'npm start' command. I have everything like the tutorial but it is not working. Can you help pls ?
@jdardir9 ай бұрын
It is the most comprehensive and amazing tutorial for Express JS I have ever seen, too weird that it didn't get the vipe ot deserves
@anjanw3e4792 жыл бұрын
on 41:53 sec the return statement is causing error "A 'return' statement can only be used within a function body"
@psionicronin19116 жыл бұрын
You can generate the migration and model from the command line if you installed sequelize-cli: Example: `sequelize model:generate --name Leads --attributes email:string` **Note:** Sequelize automatically generates the id, updatedAt and createdAt fields.
@KhwiloWatai0126 жыл бұрын
Helpful command. I think there is no use of writing all the code if there is a command to generate the same.
@skyezone93075 жыл бұрын
Thanks! This helps with less head scratch to think where did the migration come from.
@rhyswilliams44604 жыл бұрын
Echoing the call for the missing deployment! Part of the main reason I watched this video.
@brandonbutler40874 жыл бұрын
fabulous video. if youre just starting out, watch this video and dont waste your time.
@wildflyer1454 жыл бұрын
39:46 --> When I run the "sequelize db:migrate" command I get an error which states: "Cannot read property 'toString' of undefined". Any idea how can I resolve this issue?
@diegoloiola76633 жыл бұрын
Check if you correctly typed the types in the migrations folder and in the models folder in Users.js. There is a small difference, one uses DataTypes.STRING (the type in uppercase) and the other uses Sequelize.STRING I've already come across this error because one of them was with the lowercase letter
@HostDotPromo6 жыл бұрын
Anyone else addicted to Node? 🔥
@prerakhere6 жыл бұрын
@@owainharris Let's cook some more blue meth Mr. White
@danielchukwu90616 жыл бұрын
I am obsessed with NODE.JS
@OliverGomes5 жыл бұрын
Can you name some useful resources for learning beside FCC?
@MsFlamingFlamer5 жыл бұрын
Oliver Gomes traversy media
@lazzyrabbit58174 жыл бұрын
I'll literally kill for node router right now
@Habitatu4 жыл бұрын
Thank you Bahadir. This was an amazing tutorial and i learned so much. If you work through it slowly, fixing errors as you go, and referring to the github code, it will work at the end. There are some things which are shown in the video which are different in the github code and that's why its necessary to cross reference. Question: now that we have set up access flags and sessions, how do we implement it so that each user has access to his own list of leads, rather than a common pool of leads? I can think of two solutions: 1. Collect all leads in one table with an owner flag for each, and sort the returned leads by owner 2. Create a separate table for each user, and list all the leads from their table Which is preferred and why?
@forgottenvy6 жыл бұрын
Thanks for bringing this video. Been waiting for this.
@JohnJohnson-yu7hv5 жыл бұрын
Loved the video. Followed it through start to finish. Thank you so much for your talent and effort.
@SoCRMoNSTR3 жыл бұрын
#1:07:25 model.destroy 404 not found expressjs sequelize -> check that you pug file has correct href starting with '/'
@kaushikmanoharan95054 жыл бұрын
39:45 for me it's showing error - didn't return a promise ------ but the database is updated (while manually checking it) ------ is this a problem?
for me as newbie problem starts with the postgre on windows not a mac without any explanation how to do it...
@mohsin63126 жыл бұрын
I love it, sir. Thank you for this amazing tutorial.
@linuxtubers73134 жыл бұрын
One of the best with a clear level explanation. Expected to see EJS instead of PUG. 😇
@ankitbal80304 жыл бұрын
Love you freecodecamp❤
@paulthomas10524 жыл бұрын
Great course for beginning with Express and Node but also some great work on Postgres and Git too. :)
@felexkemboi32756 жыл бұрын
Vuum this is all what i have been waiting for ...thank you freecodecamp
@RahulSingh-ij6sy6 жыл бұрын
Awesome content....the sequelize model to migrations can be autmatized by npm package sequelize-auto-migrations...loved it totally...
@juhaojala75795 жыл бұрын
Thank you million times. I abandoned AdonisJS because this tutorial. Minimal framework is so nice to start build on!
@jurgensubat28275 жыл бұрын
Great detailed tutorial, thanks a lot!
@thefonsotube5 жыл бұрын
(sigh) This app breaks at 1:57:00 ... "Unhandled rejection TypeError: req.flash is not a function"
@sharilal20106 жыл бұрын
1:55 where do i paste the script from node version manager. I am using windows 8 laptop. Terminal means command line (cmd ) ?
@DonkeyBalls0075 жыл бұрын
Terminal on a mac is equivalent to something called bash. CMD is Windows specific. You will need to probably install Git (which will install a bash terminal) or just a bash terminal by itself to run some of these commands. Bash is native to linux based OS'
@sharilal20105 жыл бұрын
@@DonkeyBalls007 Thank You
@Basha5024 жыл бұрын
You can use nvm on windows too, but it is not recommended Just use the command prompt
@hayathbasha45192 жыл бұрын
Hi, Is it possible to include print API where we can configure number of copies, black and white/color print in javascript
@kimjiyoung86552 жыл бұрын
amazing tutorials, it helps a lot!!! Thank you so much :D
@pankajjoshi82924 жыл бұрын
I have seen many videos on node js javascript , build website etc. Pls do one video to clone byju's app or creating online learning website using node js. Thankyou
@thefonsotube5 жыл бұрын
People. HTML is easy. If you need a template engine use "handlebars". Stay away from bad things like "jade/pug" that force you to relearn html and waste time re-coding things that should be a simple "copy" and "paste".
@AshishSingh-7536 жыл бұрын
Freecodecamp is best place for learning
@yibosun80044 жыл бұрын
why it said "'nvm' is not recognized as an internal or external command, operable program or batch file." when I try to use ">nvm --version" in the video after downloading the node.js?
@abhinavmathur14734 жыл бұрын
Did you install NVM?
@adrianutge4624 жыл бұрын
Hey i had a problem at 39:54 when i migrate the db i have this error ERROR: database "dexp" does not exist ?? some one had an idea?
@uchembaka6 жыл бұрын
what does "fi" means at the end of the start value in the packages.json. Also, i get an error if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi ODE_ENV was unexpected at this time. m ERR! code ELIFECYCLE m ERR! errno 1 m ERR! myapp@0.0.0 start: `if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon m ERR! Exit status 1 m ERR! m ERR! Failed at the myapp@0.0.0 start script. m ERR! This is probably not a problem with npm. There is likely additional logging output above. m ERR! A complete log of this run can be found in:
@hgcthanh26445 жыл бұрын
me too, :< have you repaired it yet?
@benleb89396 жыл бұрын
21:20 When I run the npm start command, I get an error which says '$NODE_ENV was unexpected at this time.'. I think that the if statement isn't recognized correctly on my pc (windows) even though I coppied the exact code. If anyone knows why this happens, let me know!
@thanhtrungvo14786 жыл бұрын
the same error..... can you handle this ??? thanks :)
@benleb89396 жыл бұрын
@@thanhtrungvo1478 a temp fix I found is to remove conditional statement and leave only nodemon ./bin/www
@thanhtrungvo14786 жыл бұрын
@@benleb8939 yeah :))) i do the same way.... but i still wonder what wrong with it ?????
@elkhanhamet25614 жыл бұрын
Amazing tutorial!!! Thank you so much sir! God Bless!!!
@htalkies5 жыл бұрын
i think you have chosen a very very complex example to teach the subject for a beginner. You could have chosen something simple..
@TwoGuysBrickfilms15 жыл бұрын
It's simple enough for showing how to use NodeJS with a web server and database, it was exactly what I was looking for.
@washingtoncampos68625 жыл бұрын
Dr. Dan Bigs sorry, I’m trying to learn node.js could you tell where there’s other tutorials for beginners please?
@purnamasrahayu68505 жыл бұрын
@@washingtoncampos6862 try traversy media
@14thchief913 жыл бұрын
I am about to start watching this video and I'm not sure if the instructions here are compatible with windows.
@robonrus40824 жыл бұрын
Anyboyd having trouble with connect-flash? it won't pop-up anything
@maksimbronsky71174 жыл бұрын
sorry, but this video is kind of overwhelming. Where do you really start? Where does the boiler code come from ? What do you want to teach?
@kevingagnon12345 жыл бұрын
BTW - I never got the $ajax call to work even after the ".slim" fix you implemented later in the video. Any ideas?
@onurcode3 жыл бұрын
Bahadirs-iMac'i görünce gurulandım :) ellerinize sağlık Bahadır hocam, TR içeriklerinizin olduğu kanalınız varsa hemen dahil olmak isterim.
@raghavsomani46343 жыл бұрын
How do we use React here then? I mean what do we do with those pug files?
@luisjoserattia4 жыл бұрын
Excellent tutorial. Thanks!
@hussainrafi46004 жыл бұрын
Can anyone tell whether this particular API architecture is 3-tier based or 2-tier based, taking in count the use of pug files as templating engines :)
@MrRajatshukla736 жыл бұрын
I want to learn about call backs and do some practice problem on that......can anyone help
@dominikakapanowska45075 жыл бұрын
What about homebrew if I am on windows10?
@dominikakapanowska45075 жыл бұрын
@Karan Bhansali Thank you very much!
@randomacc10465 жыл бұрын
try chocolatey
@gillesgoutard96393 жыл бұрын
hi if not on Mac, how do you install postgre and create the database?
@machaelmus38433 жыл бұрын
You need a terminal like Ubuntu and install postgres via docs and npm.
@MrDienigma6 жыл бұрын
So why did you add the migration before the model itself. Pretty noob question but I just wanted to know.
@ssbrar74474 жыл бұрын
Very well explained,, thanks a lot.
@dreysolo9515 жыл бұрын
At the part were we implement user login and sign up with passport js. My code gives me a done is not a function error. But it still submits the form to the database. And the successRedirect doesn't redirect it just keeps on loading
@grodarh6 жыл бұрын
Nice tutorial.Thank You.
@syedmohi38385 жыл бұрын
Please make a easy tutorial for passport.js local strategy using mongodb
@princebhardwaj24114 жыл бұрын
I know html, css, javascript. Is there any pre requisite for this course? Please help.
@oussamabenchkroune31514 жыл бұрын
u need to learn node js basics first
@princebhardwaj24114 жыл бұрын
@@oussamabenchkroune3151 Thanks a lot man!
@girishgn92284 жыл бұрын
4:15 can anyone please help me to open similar kind of folders in linux?
@dangelos31436 жыл бұрын
I am on PC. So, express --view=pug, yields an error that says, Error: Cannot find module 'C:\c\Users\D'angelo\AppData\Roaming pm ode_modules\express-generator\bin\express-cli.js' How do I fix this, or is there somewhere I can download the template so I can go along with this tutorial?
@fringebravosky44266 жыл бұрын
maybe the path? It should be C:/USER instead of C:/c/USER. u should check ur C driver for the correct path
@itsnowsolutions97403 жыл бұрын
Can we connect ??
@HQ2656 жыл бұрын
1:50 why you didn't show how to do this on Windows machine?
@DrakeXiang6 жыл бұрын
if you search 'windows' on nvm 's readme page, you will find that nvm does not support windows, but you can use other two alternatives
@HQ2656 жыл бұрын
@@DrakeXiang I know, but I think that he should show this alternatives. Windows is still the most popular desktop os, so he shouldn't ignore that.
@davidm87366 жыл бұрын
@@DrakeXiang nvm is for multiple node versions on one box and there's a nvm -windows package available. There is NO REASON why this should be dependent on running on a linux system. it's Node and Express.
@davidm87366 жыл бұрын
(moved this to my reply to HQ265)
@davidm87366 жыл бұрын
@@HQ265 If you rename the bin/www file to something like server.js, then you can 'node server' to get is started. However, he's using deprecated code options in sequelize and express-server, so it feels like this tutorial is from 3 years ago, but just uploaded to YT now. I suppose you could follow along and learn the basics but you'll have to fix things as you go (sry, I put comment below but wasn't sure you'd see that, I have it working now but is was a lot of changes, including deprecated Mongoose calls)
@michaelmikhailov53365 жыл бұрын
Perfect. Thank you!
@abdulhaihassan4 жыл бұрын
I really loved freecodecamp but they should mention about that some video is for linux or unix based operating system only, or at least mention alternative for commands tools and stacks which arent available at other operating system eg windows, yeah we can use window's linux sub system but that doesn't make this course a begginer friendly :)
@Evildragonfirez3 жыл бұрын
use cygwin
@alfazraza40244 жыл бұрын
$NODE_ENV was unexpected at this time. I am getting above error. Can you please help me.
@mlabdev6 жыл бұрын
thanks sir , awesome tutorial
@naciribraimo79672 жыл бұрын
Love your clear explain
@JorgeLopez05 жыл бұрын
version changer for beginners, whats the point?
@muhammadubaid6576 Жыл бұрын
Make document tracking system web based in MERN stack with source
@Vivi241394 жыл бұрын
In the starting he mentioned no need to now anythig about programming.Then starts don't know what
@dennyage47914 жыл бұрын
He just mesh up every thing .. Only God knows why people are praising him
@Vivi241394 жыл бұрын
is he doing this on the linux shell
@attemptedcoding6 жыл бұрын
Love it. Thank you.
@duyvu44933 жыл бұрын
thank you for this amazing video
@jaygondalia63045 жыл бұрын
can you help me with this code i cant export my config.js file
@sharilal20106 жыл бұрын
Do i install express before i install nvm node version manager ?
@JohnLudlow5 жыл бұрын
An alternative to +Buzz Team's suggestion is nodist (github.com/nullivex/nodist). I've found this to work better than nvm-windows.
@codeonmars5795 жыл бұрын
Node version manager is to manage different version of node on your machine, which is not required initially. You just need to install node first, then can install any npm package (like express, multer etc.)
@KoScosss4 жыл бұрын
Express Middleware: 2:14:45
@sharilal20106 жыл бұрын
How do i access the terminal ?
@unity_with_timoteo5 жыл бұрын
write cmd in the search bar of the windows.
@mk3pse755 жыл бұрын
turn it off and on again
@0en5 жыл бұрын
what did he say ? for beginners !
@yusefabdullah49464 жыл бұрын
does this course have authentication?
@dennyage47914 жыл бұрын
Is this is the full tutorial
@davidAll56 жыл бұрын
cant install express on this machine - no permission install am i stuck ? & npm start gets me error :-(
@kameshkotwani6 жыл бұрын
what OS are you using?
@davidAll56 жыл бұрын
OS X at school
@tylerzoltowski74256 жыл бұрын
@@davidAll5 are you installing it with -g cause in that case you need to do sudo npm install -g express, if not you should look at your users and groups under the system preferences under the apple icon in the top left of the screen and see if your current user is an admin.
@haiangtran2036 Жыл бұрын
Not very begginer but very useful
@all_about__today5 жыл бұрын
Hey, Can we get a video tutorial timeline?
@surfinbird715 жыл бұрын
0:00 Start 1:14:06 Midpoint 2:28:13 End : )
@josephstarofficial4 жыл бұрын
thanks for your effort :)
@andersw694 жыл бұрын
Great video! The way this guy uses git is very weird lol.
@matpro04 жыл бұрын
ikr
@sanyamkaul92395 жыл бұрын
HELP NEEDED ASAP! :- XZ9:~/myapp$ sequelize db:migrate Sequelize CLI [Node: 10.15.0, CLI: 5.4.0, ORM: 5.7.4] ERROR: Error reading "config/config.js". Error: SyntaxError: Unexpected string Can anyone help me with this? Not a MacOS user so installed Postgresql separately in my Ubuntu system and made db from it. (Tried using Linuxbrew but couldn't succeed because of the same MacOS issue)
@xX123Dorian123Xx5 жыл бұрын
Too little info to go on, but my intuition tells me that you maybe missing a semicolon line above, or have messed up syntax.
@sanyamkaul92395 жыл бұрын
@@xX123Dorian123Xx Got my errors corrected! There were some silly bugs in the code. Thanks for taking out time.
@MissingSheep-ty7ty Жыл бұрын
Disclaimer: Do this tutorial at 0.75x speed and it’s perfect.
@MrDienigma6 жыл бұрын
rejection SequelizeDatabaseError: invalid input syntax for type uuid: "undefined". anyone got this?
@MrDienigma6 жыл бұрын
@Buzz Team Yes found the problem
@bawantharajapaksha64175 жыл бұрын
$NODE_ENV was unexpected at this time.
@fantasyteamshorts61124 жыл бұрын
He didn't showed us where he installed git...
@med30336 жыл бұрын
Any possible way to contact you?
@quoccuongang57096 жыл бұрын
Can we have English subtitle for the video?
@xidoc9726 жыл бұрын
Yes please.
@freecodecamp6 жыл бұрын
Unfortunately, KZbin will not automatically subtitle videos that are this long.
@borinsroy89925 жыл бұрын
Does not work on window
@ahsanshahid92405 жыл бұрын
I am a windows user. How should I install homebrew?
@Moon-Birdy3 жыл бұрын
"start": "if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi" doesn't work on Windows, even if I use "start": "nodemon ./bin/www", it can start the nodemon, but it can't restart successfully after the changes are detected. the console log displays "[nodemon] restarting due to changes...", but nothing happened
@Moon-Birdy3 жыл бұрын
at 34:52, the database.json shouldn't include module.exports = in the beginning
@ferhat32236 жыл бұрын
perfect tutorial efem.
@sigmiami5 жыл бұрын
You add simple example and build on instead several definitions and you are all over place
@LouisChausse5 жыл бұрын
Which video should I start first if I'm new to node.js? This one or that other one: kzbin.info/www/bejne/iH3Xqpute9mLh6M Thanks