Merge branch 'develop' into tommy-dev
commit
9edf283e75
@ -0,0 +1,9 @@
|
||||
# Changelog
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "greenvironment-server",
|
||||
"version": "0.1.0",
|
||||
"description": "Server for greenvironment network",
|
||||
"main": "./dist/index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.trivernis.net/Software_Engineering_I/greenvironment-server.git"
|
||||
},
|
||||
"keywords": [
|
||||
"server",
|
||||
"nodejs",
|
||||
"express"
|
||||
],
|
||||
"author": "SoftEngI",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@types/connect-pg-simple": "^4.2.0",
|
||||
"@types/cookie-parser": "^1.4.2",
|
||||
"@types/express": "^4.17.1",
|
||||
"@types/express-graphql": "^0.8.0",
|
||||
"@types/express-session": "^1.15.14",
|
||||
"@types/express-socket.io-session": "^1.3.2",
|
||||
"@types/fs-extra": "^8.0.0",
|
||||
"@types/graphql": "^14.2.3",
|
||||
"@types/node": "^12.7.2",
|
||||
"@types/pg": "^7.11.0",
|
||||
"@types/socket.io": "^2.1.2",
|
||||
"delete": "^1.1.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-minify": "^3.1.0",
|
||||
"gulp-sass": "^4.0.2",
|
||||
"gulp-typescript": "^5.0.1",
|
||||
"ts-lint": "^4.5.1",
|
||||
"tsc": "^1.20150623.0",
|
||||
"tslint": "^5.19.0",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/winston": "^2.4.4",
|
||||
"connect-pg-simple": "^6.0.0",
|
||||
"cookie-parser": "^1.4.4",
|
||||
"express": "^4.17.1",
|
||||
"express-graphql": "^0.9.0",
|
||||
"express-session": "^1.16.2",
|
||||
"express-socket.io-session": "^1.3.5",
|
||||
"fs-extra": "^8.1.0",
|
||||
"graphql": "^14.4.2",
|
||||
"graphql-import": "^0.7.1",
|
||||
"pg": "^7.12.1",
|
||||
"socket.io": "^2.2.0",
|
||||
"winston": "^3.2.1"
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
import * as express from "express";
|
||||
import * as http from "http";
|
||||
import * as socketIo from "socket.io";
|
||||
|
||||
class App {
|
||||
public app: express.Application;
|
||||
public io: socketIo.Server;
|
||||
public server: http.Server;
|
||||
|
||||
constructor() {
|
||||
this.app = express();
|
||||
this.server = new http.Server(this.app);
|
||||
this.io = socketIo(this.server);
|
||||
}
|
||||
}
|
||||
|
||||
export default App;
|
@ -0,0 +1,5 @@
|
||||
import App from "./app";
|
||||
|
||||
const app = new App();
|
||||
|
||||
// TODO: init and start
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"extends": "tslint:recommended",
|
||||
"rulesDirectory": [],
|
||||
"rules": {
|
||||
"max-line-length": {
|
||||
"options": [120]
|
||||
},
|
||||
"new-parens": true,
|
||||
"no-arg": true,
|
||||
"no-bitwise": true,
|
||||
"no-conditional-assignment": true,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"cyclomatic-complexity": true,
|
||||
"brace-style": "1tbs",
|
||||
"semicolon": true,
|
||||
"indent": [true, "spaces", 4],
|
||||
"no-shadowed-variable": true,
|
||||
"no-console": {
|
||||
"severity": "warning",
|
||||
"options": ["debug", "info", "log", "time", "timeEnd", "trace"]
|
||||
}
|
||||
},
|
||||
"jsRules": {
|
||||
"max-line-length": {
|
||||
"options": [120]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue