{"size": 585, "ext": "js", "max_stars_repo_path": "examples/server/javascript/index.js", "max_stars_repo_name": "prostgles/prostgles-server-js", "max_stars_repo_stars_event_min_datetime": "2020-07-23T10:56:01.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-12T22:56:41.000Z", "max_issues_repo_path": "examples/server/javascript/index.js", "max_issues_repo_name": "prostgles/prostgles-server-js", "max_issues_repo_issues_event_min_datetime": "2020-10-13T06:49:19.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-28T02:43:09.000Z", "max_forks_repo_path": "examples/server/javascript/index.js", "max_forks_repo_name": "prostgles/prostgles-server-js", "max_forks_repo_forks_event_min_datetime": "2020-10-12T13:12:33.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-12T13:12:33.000Z"}
{"max_stars_count": 33, "max_issues_count": 8, "max_forks_count": 1, "avg_line_length": 21.6666666667, "max_line_length": 47, "alphanum_fraction": 0.6547008547}
const express = require('express');
const app = express();
const path = require('path');
const { join } = require('path');
var http = require('http').createServer(app);
var io = require('socket.io')(http);
http.listen(3001);

const prostgles = require('prostgles-server');

prostgles({
	dbConnection: {
		host: "localhost",
		port: "5432",
    user: process.env.PRGL_USER,
    password: process.env.PRGL_PWD
	},

	// Optional sql file to be run on each reload
	sqlFilePath: path.join(__dirname+'/init.sql'),

	publish: (socket, dbo) => "*",
	io,
	onReady: async (db, _db) => {

	},
});