Commit 403fc756 authored by shuang's avatar shuang

initial commit

parents
File added
node_modules
//# sourceMappingURL=App.js.map
\ No newline at end of file
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = __importDefault(require("express"));
// const express = require("express");
const app = express_1.default();
const port = 5000; // default port to listen
// define a route handler for the default home page
app.get("/", (req, res) => {
res.send("blah");
});
// start the Express server
app.listen(port, () => {
console.log(`server started at http://localhost:${port}`);
});
//# sourceMappingURL=index.js.map
\ No newline at end of file
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,sCAAsC;AACtC,MAAM,GAAG,GAAG,iBAAO,EAAE,CAAC;AACtB,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,yBAAyB;AAM5C,mDAAmD;AACnD,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAU,EAAE,GAAqB,EAAE,EAAE;IAC/C,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC;AAEH,2BAA2B;AAC3B,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,sCAAsC,IAAI,EAAE,CAAC,CAAC;AAC9D,CAAC,CAAC,CAAC"}
\ No newline at end of file
frontend @ ccf3f2bc
Subproject commit ccf3f2bcba17a9ce98b20afd67110654236f915e
This diff is collapsed.
{
"name": "vent",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"dependencies": {
"@types/express": "^4.17.2",
"@types/node": "^13.7.0",
"body-parser": "^1.19.0",
"concurrently": "^5.1.0",
"cors": "^2.8.5",
"express": "^4.17.1",
"mongoose": "^5.8.11",
"tslint": "^6.0.0",
"typescript": "^3.7.5",
"validator": "^12.2.0",
"vue": "^2.6.11",
"vue-router": "^3.1.5"
},
"devDependencies": {},
"scripts": {
"prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
"build": "tsc",
"prestart": "npm run build",
"start": "node .",
"frontend": "npm start --prefix frontend",
"test": "echo \"Error: no test specified\" && exit 1",
"both": "concurrently \"npm run start\" \"npm run frontend\""
},
"author": "",
"license": "ISC"
}
import express from "express";
// const express = require("express");
const app = express();
const port = 5000; // default port to listen
interface ResponseInterface {
send(s: string): void;
}
// define a route handler for the default home page
app.get("/", (req:object, res:ResponseInterface) => {
res.send("blah");
});
// start the Express server
app.listen(port, () => {
console.log(`server started at http://localhost:${port}`);
});
\ No newline at end of file
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"paths": {
"*": [
"node_modules/*"
]
}
},
"include": [
"src/**/*"
]
}
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"trailing-comma": [
false
],
"no-console": false
},
"rulesDirectory": []
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment