Skip to content
Snippets Groups Projects
Commit 5fc16aad authored by jc3's avatar jc3
Browse files

launching test API project

parent eada1d43
No related branches found
No related tags found
No related merge requests found
const express = require('express')
const app = express()
const qs = require('qs')
const https = require('https')
const fruit_db = [
{ "name": "Apple", "colors": ["red", "green", "yellow"], "inSeason": true },
......@@ -89,6 +90,6 @@ app.get('/fruit', (req,res)=>{
//const PORT = 3000
app.listen(443, ()=>{
app.listen(80, ()=>{
console.log(`App listening on port: ${PORT}`
)})
\ No newline at end of file
......@@ -255,6 +255,11 @@
"toidentifier": "1.0.0"
}
},
"https": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/https/-/https-1.0.0.tgz",
"integrity": "sha1-PDfHrhqO65ZpBKKtHpdaGUt+06Q="
},
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
......
......@@ -12,6 +12,7 @@
"license": "ISC",
"dependencies": {
"express": "^4.17.1",
"https": "^1.0.0",
"parse": "^2.15.0",
"qs": "^6.9.4",
"regex": "^0.1.1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment