feat: 🎉 Created index.js

main
Keith Irwin 2024-04-18 11:44:24 -06:00
parent a758496711
commit 63d35924a8
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 20 additions and 0 deletions

20
index.js Normal file
View File

@ -0,0 +1,20 @@
'use strict'
// Config
require('dotenv').config()
const axios = require('axios')
const express = require('express')
const CORS_OPTIONS = {
'origin': process.env.WWW_DOMAIN,
'methods': 'GET,POST,PUT,OPTIONS,DELETE',
}
const jsonBodyParser = express.json()
// Server
const app = express()
const server = require('http').createServer(app)
const io = require('socket.io')(server)
server.listen(80)
// Healthcheck
app.get('/', (req, res) => res.sendStatus(200) )