Wakey Wakey is an accountability ninja server built for the sole purpose of checking up on other servers, waking them up if the need be, and notifying their master of their downtime.
• Nodejs (v18.12.1)
• Express (^4.18.2)
• Dotenv (^16.3.1)
• Express Async Errors (^3.1.1)
• Pino (^8.16.0)
• Nodemailer (^6.9.6)
• Axios (^1.5.1)
• Download the zip or clone repository and open terminal.
• Use npm install to install all dependencies.
• Use the guide.txt and the .env.example to set up your .env file
• Use npm run dev to run the program.
• Configure your build command to "npm run build"
• Configure your start command to "npm start"
• Copy your health route which should be "https://example.com/health" where example.com is your server url.
• Copy out your redeploy hook.
• Create a second service using the same repo and fill in the environmental variables of SERVERS and DEPLOYHOOKS with the health route and deploy hook of the first service.
• Fill in the other environmental variables using guide.txt.
• Copy out the health route and deploy hook of the second service and fill in the first service's environmental variable too.
• Fill in the other environmental variables using guide.txt.
• Deploy both services to keep each other running.
• Finally, copy the health route and deploy hook of your main service or any other service you deploy going forward and fill it in the SERVERS and DEPLOTHOOKS environmental variables of either of the services and deploy your server.
Wakey wakey, those requests won't get themselves to the database and send back a response.