From the course: JavaScript Code Challenges: Creating Web Apps

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Overview of the necessary JavaScript concepts

Overview of the necessary JavaScript concepts - JavaScript Tutorial

From the course: JavaScript Code Challenges: Creating Web Apps

Overview of the necessary JavaScript concepts

- [Instructor] All right, time to go full stack. That means a lot of new things. We haven't talked about back end at all so far, so let's introduce that now. We use Node.js with Express to create a simple API that can store, retrieve, and manage data. If this is your first time writing a back end application, not to worry, it will be very beginner friendly and you don't need to understand everything in depth to be able to use it the first time. We use Express.js. This is the framework. We use the spin-up server and define routes, we need to install it. And then once we have installed it, we can use it like this. We can say that we require Express to import it and then create a new app with calling the Express function. REST APIs allow us to trigger the execution of this code with certain URLs. And in order to do that, we'll create basic routes like /items for GET, /items for POST, and we're going to be using Express' app.get and app.post methods for this. So here's an example. We…

Contents