Daemon process continuously monitoring HTTP endpoint availability and posting Slack alerts on failures.
Tick off requirements as you build to track real-time completion.
Follow this chronological guide to build the project from scratch.
Issue asynchronous HTTP GET requests to target endpoints with configurable timeout limits.
import axios from 'axios';
export interface TargetConfig {
name: string;
url: string;
timeoutMs: number;
}
export async function pingTarget(target: TargetConfig): Promise<{ healthy: boolean; statusCode?: number; latencyMs: number }> {
const start = Date.now();
try {
const res = await axios.get(target.url, { timeout: target.timeoutMs });
return { healthy: res.status === 200, statusCode: res.status, latencyMs: Date.now() - start };
} catch (err: any) {
return { healthy: false, statusCode: err.response?.status, latencyMs: Date.now() - start };
}
}Real issues students hit during development and how to troubleshoot them fast.
Continue building your skills with similar projects.
Sleek weather dashboard using OpenWeather API with geolocation, 5-day forecast, and dynamic weather themes.
Personal budget tracker with transaction log, category breakdown, and Chart.js pie charts.
Movie discovery app with TMDB API, trending lists, search, and detail modals.