Scalable IoT solution for real-time body position data
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const app = require('express')()
|
|
|
|
const server = require('http').createServer(app);
|
|
|
|
const chalk = require('chalk')
|
|
|
|
|
|
|
|
const redis = require('./connections/redis_conn')
|
|
|
|
const influx = require('./connections/influx_conn')
|
|
|
|
const socket = require('./services/socket')(server)
|
|
|
|
|
|
|
|
const measurementRoute = require('./routes/data')
|
|
|
|
|
|
|
|
app.use(measurementRoute)
|
|
|
|
|
|
|
|
server.listen(3000);
|
|
|
|
console.log(chalk.green.bold('Server listening on port 3000!'));
|