- start the vm
- open the ssh window
- run "redis-server" in one window
- run "redis-cli" in another window
- type "CONFIG SET protected-mode no" to disable protected-mode
- type "CONFIG SET requirepass password" to set password
cd client/
npm i
npm start
add default.js in config directory
module.exports = {
port: 5000,
redis: {
host: "a.b.c.d",
port: 6379,
db: 0
},
db: "mongodb://xxx",
tokenName: "access_token",
tokenExpireSeconds: 60 * 60 // one hour
};
cd server/
npm i
npm start