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.

14 lines
382 B

const redis = require('redis');
const chalk = require('chalk');
const {redis_user, redis_password, redis_host, redis_port} = require('../config/keys')
const client = redis.createClient(`redis://${redis_host}:${redis_port}`);
client.on('error', function (error) {
console.error(error);
});
console.log(chalk.greenBright.bold('Connected to redis!'))
module.exports = {client}