This is a simple public API built using Epress.js for HNG Internship Stage 0 task. The API returns:
- My registered email
- The current date-time in ISO 8601 format
- The GitHub URL for this project
Base URL: https://hng12-stage-0.onrender.com/
Request:
GET /
Response:
{
"email": "fkariuki311@gmail.com",
"current_datetime": "2025-01-29T17:28:15.423Z",
"github_url": "https://github.com/Faith-K-commits/hng-stage-0"
}
- Clone the Repository
git clone https://github.com/Faith-K-commits/hng-stage-0.git
cd hng-stage-0
- Install Dependecies
npm install
- Run the Server
node index.js
- Test the API
- Open
http://localhost:3000/
in your browser or use Postman to test theGET
request.
This API is deployed on Render and can be accessed at:
Live API URL: https://hng12-stage-0.onrender.com/
- Node.js
- Express.js
- CORS for handling cross-origin requests
-
GitHub Repo: https://github.com/Faith-K-commits/hng-stage-0
-
Hire Node.js Developers: https://hng.tech/hire/nodejs-developers