From the course: Databases for Node.js Developers

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Exploring the sample project

Exploring the sample project - Node.js Tutorial

From the course: Databases for Node.js Developers

Exploring the sample project

- [Instructor] We have already cloned the repository and we opened it in Visual Studio Code. Now let's set up everything to run the project. First, let me open the package.json file for you. This project is built with Fastify instead of Express. If you've used Express before, don't worry, Fastify has a similar structure, but is defined to be faster and more efficient. Before running the project, we need to install the dependencies. So now I click on Terminal, New Terminal, and there I simply type npm install. This will now pull down all the dependencies. Once this is finished, the server is ready to run. And when you scroll up here in the package.json, you see that we are using Nodemon, and Nodemon is very handy because it'll automatically reload the application whenever we change a file. So I now run npm run dev and it starts the server already. Now, when we look into the src folder, we see that the project is structured similar to an Express app. So we have the server.js file, let…

Contents