Skip to content
 
 

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First API

Initiliaze prjoject

  • npm init -y

watch for changes

Node

  • Add the "--watch" flag
node --watch index.js

nodemon

npm install nodemon
nodemon index.js

Add scripts to package.json

"scripts": {
    "dev": "node --watch index.js",
    "start": "nodemon index.js"
  },

Allow request

res.setHeader("Access-Control-Allow-Origin", "*");

Allows us to send requests to the API from our frontend

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages