From 6d61f6bb25bff4016e0589a8c598a86344a08dfa Mon Sep 17 00:00:00 2001 From: Daaimah Tibrey <41805952+daaimah123@users.noreply.github.com> Date: Fri, 9 Aug 2024 07:25:48 -0700 Subject: [PATCH] Update rest-api-project.md --- projects/rest-api-project.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/rest-api-project.md b/projects/rest-api-project.md index a75b3ba6c..a2676f278 100644 --- a/projects/rest-api-project.md +++ b/projects/rest-api-project.md @@ -43,7 +43,7 @@ We can add common FAQs here. Open a PR if you have any questions. 1. Make a new directory for your project. 2. cd into your new directory 3. create a package.json with the command `npm init -y` -4. Make sure that the main file in your package is `index.js` +4. Make sure that the main file in your package is `index.js`. Create your index.js file (you can do that with `touch index.js` or directly on your VSCode) 5. Install all the dependencies with the commands:`npm i express` and `npm i cors` 6. Install the module nodemon in the dev server with the command `npm i nodemon --save-dev` 7. Inside your package.json, change the scripts to: @@ -56,5 +56,4 @@ We can add common FAQs here. Open a PR if you have any questions. (doing this, you will delete the test script) 8. Add `"type": "module"` before "scripts" -9. Create your index.js file (you can do that with `touch index.js` or directly on your VSCode) 10. Run `npm run start` in your terminal