8000 GitHub - Faith-K-commits/hng-stage-0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Faith-K-commits/hng-stage-0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HNG Stage 0

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

API Endpoint

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"
}

Installation & Running Locally

  1. Clone the Repository
git clone https://github.com/Faith-K-commits/hng-stage-0.git

cd hng-stage-0
  1. Install Dependecies
npm install
  1. Run the Server
node index.js
  1. Test the API
  • Open http://localhost:3000/ in your browser or use Postman to test the GET request.

Deployment

This API is deployed on Render and can be accessed at:

Live API URL: https://hng12-stage-0.onrender.com/

Tech Stack

  • Node.js
  • Express.js
  • CORS for handling cross-origin requests

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0