basic dal and json
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/traxer_api/node_modules
|
||||
/node_modules
|
||||
/traxer_api/.codeedit
|
||||
|
||||
39
traxer_api/package-lock.json → package-lock.json
generated
39
traxer_api/package-lock.json → package-lock.json
generated
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "traxer_api",
|
||||
"name": "project",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxer_api",
|
||||
"name": "project",
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -84,15 +84,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/content-disposition": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz",
|
||||
"integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==",
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz",
|
||||
"integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safe-buffer": "5.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/content-type": {
|
||||
@@ -641,26 +642,6 @@
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
||||
@@ -1,18 +1,20 @@
|
||||
{
|
||||
"name": "traxer_api",
|
||||
"name": "project",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node start.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.nathanspackman.com/PRO150-Group/Project"
|
||||
},
|
||||
"license": "ISC",
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"type": "commonjs",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^5.1.0"
|
||||
}
|
||||
5
src/dal/data/routePath.json
Normal file
5
src/dal/data/routePath.json
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"route_id": "701",
|
||||
"start_location": "Draper City Center",
|
||||
"end_location": "Salt Lake Central"
|
||||
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,405 @@
|
||||
[
|
||||
{
|
||||
"stop_id": "18376",
|
||||
"stop_code": "TX126073",
|
||||
"stop_name": "Gallivan Plaza Station",
|
||||
"stop_desc": "255 S Main St & 300 S",
|
||||
"stop_lat": "40.763087",
|
||||
"stop_lon": "-111.891102"
|
||||
},
|
||||
{
|
||||
"stop_id": "18385",
|
||||
"stop_code": "TX128001",
|
||||
"stop_name": "City Center Station",
|
||||
"stop_desc": "55 S Main St & South Temple",
|
||||
"stop_lat": "40.768217",
|
||||
"stop_lon": "-111.891081"
|
||||
},
|
||||
{
|
||||
"stop_id": "18386",
|
||||
"stop_code": "TX128002",
|
||||
"stop_name": "City Center Station",
|
||||
"stop_desc": "55 S Main St & South Temple",
|
||||
"stop_lat": "40.767452",
|
||||
"stop_lon": "-111.891101"
|
||||
},
|
||||
{
|
||||
"stop_id": "18387",
|
||||
"stop_code": "TX136033",
|
||||
"stop_name": "Millcreek Station",
|
||||
"stop_desc": "210 W 3300 S & South Temple",
|
||||
"stop_lat": "40.701067",
|
||||
"stop_lon": "-111.896939"
|
||||
},
|
||||
{
|
||||
"stop_id": "18388",
|
||||
"stop_code": "TX136034",
|
||||
"stop_name": "Millcreek Station",
|
||||
"stop_desc": "210 W 3300 S & South Temple",
|
||||
"stop_lat": "40.700365",
|
||||
"stop_lon": "-111.896952"
|
||||
},
|
||||
{
|
||||
"stop_id": "18389",
|
||||
"stop_code": "TX136035",
|
||||
"stop_name": "Meadowbrook Station",
|
||||
"stop_desc": "188 W 3900 S & South Temple",
|
||||
"stop_lat": "40.688026",
|
||||
"stop_lon": "-111.896725"
|
||||
},
|
||||
{
|
||||
"stop_id": "18390",
|
||||
"stop_code": "TX136036",
|
||||
"stop_name": "Meadowbrook Station",
|
||||
"stop_desc": "188 W 3900 S & South Temple",
|
||||
"stop_lat": "40.687328",
|
||||
"stop_lon": "-111.896553"
|
||||
},
|
||||
{
|
||||
"stop_id": "18391",
|
||||
"stop_code": "TX136045",
|
||||
"stop_name": "Murray North Station",
|
||||
"stop_desc": "71 W Fireclay Ave & South Temple",
|
||||
"stop_lat": "40.677155",
|
||||
"stop_lon": "-111.894053"
|
||||
},
|
||||
{
|
||||
"stop_id": "18392",
|
||||
"stop_code": "TX136048",
|
||||
"stop_name": "Murray North Station",
|
||||
"stop_desc": "71 W Fireclay Ave & South Temple",
|
||||
"stop_lat": "40.676454",
|
||||
"stop_lon": "-111.894079"
|
||||
},
|
||||
{
|
||||
"stop_id": "18393",
|
||||
"stop_code": "TX153027",
|
||||
"stop_name": "Murray Central Station",
|
||||
"stop_desc": "5144 S Cottonwood St & State St",
|
||||
"stop_lat": "40.660269",
|
||||
"stop_lon": "-111.895282"
|
||||
},
|
||||
{
|
||||
"stop_id": "18394",
|
||||
"stop_code": "TX153034",
|
||||
"stop_name": "Murray Central Station",
|
||||
"stop_desc": "5144 S Cottonwood St & State St",
|
||||
"stop_lat": "40.659631",
|
||||
"stop_lon": "-111.895661"
|
||||
},
|
||||
{
|
||||
"stop_id": "18395",
|
||||
"stop_code": "TX153041",
|
||||
"stop_name": "Fashion Place West Station",
|
||||
"stop_desc": "222 W Winchester St & State St",
|
||||
"stop_lat": "40.633823",
|
||||
"stop_lon": "-111.898319"
|
||||
},
|
||||
{
|
||||
"stop_id": "18396",
|
||||
"stop_code": "TX153045",
|
||||
"stop_name": "Fashion Place West Station",
|
||||
"stop_desc": "222 W Winchester St & State St",
|
||||
"stop_lat": "40.633116",
|
||||
"stop_lon": "-111.898355"
|
||||
},
|
||||
{
|
||||
"stop_id": "18397",
|
||||
"stop_code": "TX153046",
|
||||
"stop_name": "Midvale Fort Union Station",
|
||||
"stop_desc": "7250 S 180 W & State St",
|
||||
"stop_lat": "40.619458",
|
||||
"stop_lon": "-111.898381"
|
||||
},
|
||||
{
|
||||
"stop_id": "18398",
|
||||
"stop_code": "TX153047",
|
||||
"stop_name": "Midvale Fort Union Station",
|
||||
"stop_desc": "7250 S 180 W & State St",
|
||||
"stop_lat": "40.618761",
|
||||
"stop_lon": "-111.898291"
|
||||
},
|
||||
{
|
||||
"stop_id": "18399",
|
||||
"stop_code": "TX153048",
|
||||
"stop_name": "Midvale Center Station",
|
||||
"stop_desc": "95 W Center St & State St",
|
||||
"stop_lat": "40.610541",
|
||||
"stop_lon": "-111.893216"
|
||||
},
|
||||
{
|
||||
"stop_id": "18400",
|
||||
"stop_code": "TX153049",
|
||||
"stop_name": "Midvale Center Station",
|
||||
"stop_desc": "95 W Center St & State St",
|
||||
"stop_lat": "40.609975",
|
||||
"stop_lon": "-111.892645"
|
||||
},
|
||||
{
|
||||
"stop_id": "18401",
|
||||
"stop_code": "TX173021",
|
||||
"stop_name": "Historic Sandy Station",
|
||||
"stop_desc": "165 E 9000 S & Fort Union Blvd",
|
||||
"stop_lat": "40.589811",
|
||||
"stop_lon": "-111.885661"
|
||||
},
|
||||
{
|
||||
"stop_id": "18402",
|
||||
"stop_code": "TX173022",
|
||||
"stop_name": "Historic Sandy Station",
|
||||
"stop_desc": "165 E 9000 S & Fort Union Blvd",
|
||||
"stop_lat": "40.589114",
|
||||
"stop_lon": "-111.885744"
|
||||
},
|
||||
{
|
||||
"stop_id": "18403",
|
||||
"stop_code": "TX173026",
|
||||
"stop_name": "Sandy Civic Center Station",
|
||||
"stop_desc": "115 E Sego Lily Dr & Fort Union Blvd",
|
||||
"stop_lat": "40.571127",
|
||||
"stop_lon": "-111.884681"
|
||||
},
|
||||
{
|
||||
"stop_id": "18404",
|
||||
"stop_code": "TX173029",
|
||||
"stop_name": "Sandy Civic Center Station",
|
||||
"stop_desc": "115 E Sego Lily Dr & Fort Union Blvd",
|
||||
"stop_lat": "40.570273",
|
||||
"stop_lon": "-111.884471"
|
||||
},
|
||||
{
|
||||
"stop_id": "18405",
|
||||
"stop_code": "TX125067",
|
||||
"stop_name": "Arena Station",
|
||||
"stop_desc": "350 W South Temple & 300 W",
|
||||
"stop_lat": "40.769344",
|
||||
"stop_lon": "-111.901146",
|
||||
"stop_url": "",
|
||||
"location_type": null,
|
||||
"parent_station": ""
|
||||
},
|
||||
{
|
||||
"stop_id": "18406",
|
||||
"stop_code": "TX125069",
|
||||
"stop_name": "Arena Station",
|
||||
"stop_desc": "350 W South Temple & 300 W",
|
||||
"stop_lat": "40.769343",
|
||||
"stop_lon": "-111.900051"
|
||||
},
|
||||
{
|
||||
"stop_id": "18407",
|
||||
"stop_code": "TX125078",
|
||||
"stop_name": "Temple Square Station",
|
||||
"stop_desc": "155 W South Temple & West Temple",
|
||||
"stop_lat": "40.769353",
|
||||
"stop_lon": "-111.895321"
|
||||
},
|
||||
{
|
||||
"stop_id": "18408",
|
||||
"stop_code": "TX125084",
|
||||
"stop_name": "Temple Square Station",
|
||||
"stop_desc": "155 W South Temple & West Temple",
|
||||
"stop_lat": "40.769335",
|
||||
"stop_lon": "-111.894303"
|
||||
},
|
||||
{
|
||||
"stop_id": "18409",
|
||||
"stop_code": "TX125085",
|
||||
"stop_name": "Courthouse Station",
|
||||
"stop_desc": "450 S Main St & 400 S",
|
||||
"stop_lat": "40.759536",
|
||||
"stop_lon": "-111.891071"
|
||||
},
|
||||
{
|
||||
"stop_id": "18410",
|
||||
"stop_code": "TX125091",
|
||||
"stop_name": "Courthouse Station",
|
||||
"stop_desc": "450 S Main St & 500 S",
|
||||
"stop_lat": "40.758762",
|
||||
"stop_lon": "-111.891096"
|
||||
},
|
||||
{
|
||||
"stop_id": "18411",
|
||||
"stop_code": "TX125092",
|
||||
"stop_name": "Ballpark Station",
|
||||
"stop_desc": "180 W 1300 S & 500 S",
|
||||
"stop_lat": "40.742583",
|
||||
"stop_lon": "-111.896781"
|
||||
},
|
||||
{
|
||||
"stop_id": "18412",
|
||||
"stop_code": "TX125093",
|
||||
"stop_name": "Ballpark Station",
|
||||
"stop_desc": "180 W 1300 S & 500 S",
|
||||
"stop_lat": "40.741876",
|
||||
"stop_lon": "-111.896785"
|
||||
},
|
||||
{
|
||||
"stop_id": "18413",
|
||||
"stop_code": "TX125094",
|
||||
"stop_name": "Central Pointe Station",
|
||||
"stop_desc": "221 W 2100 S & 500 S",
|
||||
"stop_lat": "40.724801",
|
||||
"stop_lon": "-111.896861"
|
||||
},
|
||||
{
|
||||
"stop_id": "18414",
|
||||
"stop_code": "TX125096",
|
||||
"stop_name": "Central Pointe Station",
|
||||
"stop_desc": "221 W 2100 S & 500 S",
|
||||
"stop_lat": "40.724091",
|
||||
"stop_lon": "-111.896892"
|
||||
},
|
||||
{
|
||||
"stop_id": "18415",
|
||||
"stop_code": "TX126071",
|
||||
"stop_name": "Gallivan Plaza Station",
|
||||
"stop_desc": "255 S Main St & 200 S",
|
||||
"stop_lat": "40.763855",
|
||||
"stop_lon": "-111.891071"
|
||||
},
|
||||
{
|
||||
"stop_id": "20973",
|
||||
"stop_code": "TX136084",
|
||||
"stop_name": "900 South Station",
|
||||
"stop_desc": "S 200 W & W 900 S",
|
||||
"stop_lat": "40.750058",
|
||||
"stop_lon": "-111.896818"
|
||||
},
|
||||
{
|
||||
"stop_id": "20982",
|
||||
"stop_code": "TX136085",
|
||||
"stop_name": "900 South Station",
|
||||
"stop_desc": "825 S 200 W & 800 S",
|
||||
"stop_lat": "40.750822",
|
||||
"stop_lon": "-111.896788"
|
||||
},
|
||||
{
|
||||
"stop_id": "21225",
|
||||
"stop_code": "TX173129",
|
||||
"stop_name": "Sandy Expo Station",
|
||||
"stop_desc": "9375 S 150 E & 9400 S",
|
||||
"stop_lat": "40.581703",
|
||||
"stop_lon": "-111.886234"
|
||||
},
|
||||
{
|
||||
"stop_id": "21226",
|
||||
"stop_code": "TX173130",
|
||||
"stop_name": "Sandy Expo Station",
|
||||
"stop_desc": "9375 S 150 E & 9400 S",
|
||||
"stop_lat": "40.581007",
|
||||
"stop_lon": "-111.886429"
|
||||
},
|
||||
{
|
||||
"stop_id": "21761",
|
||||
"stop_code": "TX101394",
|
||||
"stop_name": "Salt Lake Central Station",
|
||||
"stop_desc": "600 W 330 S",
|
||||
"stop_lat": "40.762533",
|
||||
"stop_lon": "-111.908296"
|
||||
},
|
||||
{
|
||||
"stop_id": "21762",
|
||||
"stop_code": "TX101395",
|
||||
"stop_name": "Planetarium Station",
|
||||
"stop_desc": "150 S 400 W",
|
||||
"stop_lat": "40.766858",
|
||||
"stop_lon": "-111.902524"
|
||||
},
|
||||
{
|
||||
"stop_id": "21763",
|
||||
"stop_code": "TX101396",
|
||||
"stop_name": "Old Greektown Station",
|
||||
"stop_desc": "554 W 200 S",
|
||||
"stop_lat": "40.765022",
|
||||
"stop_lon": "-111.905788"
|
||||
},
|
||||
{
|
||||
"stop_id": "21799",
|
||||
"stop_code": "TX101404",
|
||||
"stop_name": "Salt Lake Central Station",
|
||||
"stop_desc": "330 S 600 West",
|
||||
"stop_lat": "40.761721",
|
||||
"stop_lon": "-111.908301"
|
||||
},
|
||||
{
|
||||
"stop_id": "21800",
|
||||
"stop_code": "TX101405",
|
||||
"stop_name": "Planetarium Station",
|
||||
"stop_desc": "400 W 150 S",
|
||||
"stop_lat": "40.766096",
|
||||
"stop_lon": "-111.902558"
|
||||
},
|
||||
{
|
||||
"stop_id": "21801",
|
||||
"stop_code": "TX101406",
|
||||
"stop_name": "Old Greektown Station",
|
||||
"stop_desc": "554 W 200 S",
|
||||
"stop_lat": "40.765022",
|
||||
"stop_lon": "-111.906778"
|
||||
},
|
||||
{
|
||||
"stop_id": "23318",
|
||||
"stop_code": "TX198093",
|
||||
"stop_name": "Crescent View Station",
|
||||
"stop_desc": "361 E 11400 South & 361 East",
|
||||
"stop_lat": "40.545343",
|
||||
"stop_lon": "-111.878751"
|
||||
},
|
||||
{
|
||||
"stop_id": "23319",
|
||||
"stop_code": "TX198094",
|
||||
"stop_name": "Crescent View Station",
|
||||
"stop_desc": "361 E 11400 South & 361 East",
|
||||
"stop_lat": "40.544591",
|
||||
"stop_lon": "-111.878506"
|
||||
},
|
||||
{
|
||||
"stop_id": "23320",
|
||||
"stop_code": "TX198095",
|
||||
"stop_name": "Kimballs Lane Station",
|
||||
"stop_desc": "11796 S 700 East & 11796 South",
|
||||
"stop_lat": "40.536528",
|
||||
"stop_lon": "-111.872436"
|
||||
},
|
||||
{
|
||||
"stop_id": "23321",
|
||||
"stop_code": "TX198096",
|
||||
"stop_name": "Kimballs Lane Station",
|
||||
"stop_desc": "11796 S 700 East & 11796 South",
|
||||
"stop_lat": "40.535876",
|
||||
"stop_lon": "-111.871887"
|
||||
},
|
||||
{
|
||||
"stop_id": "23322",
|
||||
"stop_code": "TX198097",
|
||||
"stop_name": "Draper Town Center Station",
|
||||
"stop_desc": "1131 E Pioneer Road & 1131 East",
|
||||
"stop_lat": "40.525675",
|
||||
"stop_lon": "-111.859915"
|
||||
},
|
||||
{
|
||||
"stop_id": "23323",
|
||||
"stop_code": "TX198098",
|
||||
"stop_name": "Draper Town Center Station",
|
||||
"stop_desc": "1131 E Pioneer Road & 1131 East",
|
||||
"stop_lat": "40.525496",
|
||||
"stop_lon": "-111.858805"
|
||||
},
|
||||
{
|
||||
"stop_id": "25328",
|
||||
"stop_code": "TX102103",
|
||||
"stop_name": "600 South Station",
|
||||
"stop_desc": "650 S Main St & 600 S",
|
||||
"stop_lat": "40.756057",
|
||||
"stop_lon": "-111.891096"
|
||||
},
|
||||
{
|
||||
"stop_id": "25329",
|
||||
"stop_code": "TX102104",
|
||||
"stop_name": "600 South Station",
|
||||
"stop_desc": "650 S Main Street & 600 S",
|
||||
"stop_lat": "40.755113",
|
||||
"stop_lon": "-111.891095"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
[
|
||||
{
|
||||
"vehicleId": "1003B",
|
||||
"routeNum": "701",
|
||||
"routeName": "Blue Line",
|
||||
"destination": "To Salt Lake Central",
|
||||
"bearing": 0.3,
|
||||
"location": {
|
||||
"latitude": 40.67723,
|
||||
"longitude": -111.8941
|
||||
}
|
||||
},
|
||||
{
|
||||
"vehicleId": "1016B",
|
||||
"routeNum": "701",
|
||||
"routeName": "Blue Line",
|
||||
"destination": "To Draper",
|
||||
"bearing": 89.9,
|
||||
"location": {
|
||||
"latitude": 40.76929,
|
||||
"longitude": -111.9005
|
||||
}
|
||||
},
|
||||
{
|
||||
"vehicleId": "1006A",
|
||||
"routeNum": "701",
|
||||
"routeName": "Blue Line",
|
||||
"destination": "To Salt Lake Central",
|
||||
"bearing": 358.6,
|
||||
"location": {
|
||||
"latitude": 40.76017,
|
||||
"longitude": -111.8911
|
||||
}
|
||||
},
|
||||
{
|
||||
"vehicleId": "1028A",
|
||||
"routeNum": "701",
|
||||
"routeName": "Blue Line",
|
||||
"destination": "To Draper",
|
||||
"bearing": 179.9,
|
||||
"location": {
|
||||
"latitude": 40.74292,
|
||||
"longitude": -111.8969
|
||||
}
|
||||
},
|
||||
{
|
||||
"vehicleId": "1004A",
|
||||
"routeNum": "701",
|
||||
"routeName": "Blue Line",
|
||||
"destination": "To Salt Lake Central",
|
||||
"bearing": 349,
|
||||
"location": {
|
||||
"latitude": 40.57289,
|
||||
"longitude": -111.8852
|
||||
}
|
||||
},
|
||||
{
|
||||
"vehicleId": "1008A",
|
||||
"routeNum": "701",
|
||||
"routeName": "Blue Line",
|
||||
"destination": "To Draper",
|
||||
"bearing": 180.6,
|
||||
"location": {
|
||||
"latitude": 40.65089,
|
||||
"longitude": -111.8982
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
vehicleData=require('./data/vehicles.json');
|
||||
|
||||
exports.DAL={
|
||||
getVehicles:function() {
|
||||
return vehicleData;
|
||||
},
|
||||
};
|
||||
|
||||
14
start.js
14
start.js
@@ -1 +1,15 @@
|
||||
//Starts
|
||||
const express = require('express')
|
||||
const { DAL } = require('./src/dal/staticDal')
|
||||
const app = express()
|
||||
const port = 3000
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.json(DAL.getVehicles())
|
||||
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Example app listening on port ${port}`)
|
||||
})
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
const express = require('express')
|
||||
const app = express()
|
||||
const port = 3000
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!')
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Example app listening on port ${port}`)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user