Skip to content

A simple public API for HNG Stage 0 Backend Task. It returns my registered email, the current UTC datetime, and the GitHub repository URL in JSON format. Built with FastAPI and deployed for public access.

License

Notifications You must be signed in to change notification settings

SCCSMARTCODE/hng-stage0-backend-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HNG Stage 0 Backend API

This is a simple public API developed as part of the HNG Stage 0 task. The API provides basic information such as the registered email, current date and time in ISO 8601 format, and the GitHub repository URL.

Features

  • Returns email, current UTC datetime, and GitHub repository URL in JSON format.
  • Deployed to a publicly accessible endpoint.
  • CORS handling enabled for cross-origin requests.
  • Fast response time (<500ms).

Live API Endpoint

https://hng-stage0-backend-api-94ho.vercel.app/

Technologies Used

  • Programming Language: Python
  • Framework: FastAPI
  • Deployment: Vercel

API Documentation

GET /

Returns basic information in JSON format.

Request

GET https://hng-stage0-backend-api-94ho.vercel.app/

Response Format

{
  "email": "sccsmartcode@gmail.com",
  "current_datetime": "2025-01-29T21:15:30.123456Z",
  "github_url": "https://github.com/SCCSMARTCODE/hng-stage0-backend-api"
}

Setup Instructions

Clone the Repository

git clone https://github.com/SCCSMARTCODE/hng-stage0-backend-api.git
cd hng-stage0-backend-api

Install Dependencies

Ensure you have Python installed, then install required dependencies:

pip install -r requirements.txt

Run the Application Locally

python app.py

Test Locally

Once running, open your browser or use Postman to access:

http://127.0.0.1:8001/

Deployment

This project is deployed on Vercel. To deploy manually:

  1. Install Vercel CLI:
    npm install -g vercel
  2. Deploy the project:
    vercel

Hiring Links

Looking for backend developers? Check out:

License

This project is open-source and available under the MIT License.

About

A simple public API for HNG Stage 0 Backend Task. It returns my registered email, the current UTC datetime, and the GitHub repository URL in JSON format. Built with FastAPI and deployed for public access.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages