1/13/2024 0 Comments Pro mern stack![]() You can create this from the project folder with the $ touch app.js command (on macOS). Now, create a file named app.js for our entry point. This will define the start script of the application.Īfter that, your package.json should look like this: It is also important to define a start script here with "start": "node app.js". The app.js is the entry point for the application. Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. To use nodemon, add "app": "nodemon app.js" to your scripts tag under the package.json file. If you don’t want to add this, you can skip it - it’s optional. Now, we’ll add nodemon as a dev dependency.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |