A minimal, production-ready REST API built with Node.js and Express.
This API provides identity and health-check endpoints in strict JSON formatting. Built to be exceptionally fast (<500ms responses), highly available, and easily deployed via PM2 and Nginx reverse proxy.
- Clone the repository:
git clone <your-repo-link> cd personal-api
- Install dependencies:
npm install
- Start the development server:
The server will start locally on
npm start
http://localhost:3000.
| Method | Endpoint | Description | Expected 200 JSON Response |
|---|---|---|---|
| GET | / |
Root Status | {"message": "API is running"} |
| GET | /health |
API Health | {"message": "healthy"} |
| GET | /me |
Identity | {"name": "Akwerigbe O. Okeoghene", "email": "akwerigbeoke@gmail.com", "github": "https://github.com/AkwerigbeO"} |
Ensure the server is running, then run these tests in your terminal:
# Test ROOT endpoint
curl -i http://localhost:3000/
# Test HEALTH endpoint
curl -i http://localhost:3000/health
# Test ME endpoint
curl -i http://localhost:3000/mePlaceholder: http://your-production-url.com