Skip to content

Commit

Permalink
Update rest-api-project.md
Browse files Browse the repository at this point in the history
  • Loading branch information
daaimah123 authored Aug 9, 2024
1 parent 43dd68c commit 6d61f6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/rest-api-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 6d61f6b

Please sign in to comment.