mirror of
https://github.com/FranP-code/open-react-blog-api.git
synced 2025-10-12 23:52:57 +00:00
Initial commit
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package-lock.json
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
.env
|
||||||
|
functions
|
||||||
24
package.json
Normal file
24
package.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "open-react-blog-api",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "src/index.js",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node src/index.js",
|
||||||
|
"dev": "nodemon src/index.js"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/FranP-code/open-react-blog-api.git"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/FranP-code/open-react-blog-api/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/FranP-code/open-react-blog-api#readme",
|
||||||
|
"dependencies": {
|
||||||
|
"express": "^4.18.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
11
src/index.js
Normal file
11
src/index.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
const Express = require("express")
|
||||||
|
const server = Express()
|
||||||
|
|
||||||
|
const port = 3000
|
||||||
|
|
||||||
|
server.get("/", (req, res) => {
|
||||||
|
res.send("TEST")
|
||||||
|
})
|
||||||
|
|
||||||
|
server.listen(port)
|
||||||
|
console.log("Listening in the port ", port)
|
||||||
Reference in New Issue
Block a user