This project is a simple public API that provides basic information, including:
- Your registered email address (used on HNG12 Slack workspace).
- The current date and time in ISO 8601 format.
- The GitHub repository URL for this project.
The API is built using Node.js with Express.js and follows best practices for structuring and handling requests.
- RESTful API with a single endpoint.
- Returns JSON-formatted responses.
- CORS-enabled for cross-origin requests.
- Proper error handling.
- Hosted on a publicly accessible platform.
- Programming Language: JavaScript (Node.js)
- Framework: Express.js
- Deployment Platform: [Specify your hosting provider]
- Version Control: Git & GitHub
{
"email": "your-email@example.com",
"current_datetime": "2025-01-30T09:30:00Z",
"github_url": "https://github.com/yourusername/your-repo"
}
- SwaggerDoc Link: https://hng-week1-riea.onrender.com/api-docs/#/default/get_api_info
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/yourusername/your-repo.git cd your-repo
-
Install dependencies:
yarn install # or npm install
-
Start the server locally:
yarn dev # or npm run dev
The server will run on
http://localhost:3000
by default.
To deploy the API, you can use any cloud platform such as:
- Vercel
- Render
- Railway
- AWS Lambda (via API Gateway)
- DigitalOcean, Linode, or Heroku
Ensure the API is accessible via a public URL before submission.
- GitHub Repository: https://github.com/bubykay/hng-week1/
- HNG Internship Hiring Links:
This project is licensed under the MIT License.
For any issues, feel free to open an issue on GitHub or reach out via email: your-email@example.com
.