From the course: MERN Essential Training (2020)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Babel setup in the server
From the course: MERN Essential Training (2020)
Babel setup in the server
- [Instructor] This course will use the latest JavaScript syntax throughout, and we want to be able to code our server without worrying about any syntax breaking or application. So, Babel is the tool we'll set up to help with compiling our code. Let's also initialize our package.json file and install the main dependencies we'll need for a server. So, I'm back in VS CODE and what I could do is open the terminal directly up here, like so. And then make sure that I change directory, so CD into backend, and there's also a short cut. If you want to do this much faster, you can right click on the folder you want to open a terminal in and then open in terminal if you want to do that. So now, I'm in the backend directory, and I want to go ahead and initialize a package.json file. So, I'm going to do npm init, and then hit Enter to all the typical stuff here, and I'm going to enter my name as the author, and then click yes.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.