Skip to content

TYDev01/Hng12_Task_0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Task 0 - HNG Internship

This is a simple Project built with FastAPI with a single route that Retrieve Basic Information, including an email, the current datetime in ISO 8601 format, and a GitHub repository URL.

Features

  • Returns a JSON response with:
    • Email
    • Current datetime (UTC) in ISO 8601 format
    • GitHub repository URL

Installation & Setup

1 Clone the Repository

git clone https://github.com/TYDev01/Hng12_Task_0.git
    - cd Hng12_Task_0

2 Create a Virtual Enviroment

- python -m venv venv
- source venv/bin/activate  # On Windows: venv\Scripts\activate

3 Install Dependencies

  - pip install -r requirements.txt

4 Run the FastAPI App

- uvicorn main:app --reload

5 Test the Endpoint

- Once the server is running, visit:
    http://127.0.0.1:8000/home
        or use curl
- curl http://127.0.0.1:8000/home

Example JSON Response

{
    "email": "tonieschi@gmail.com",
    "current_datetime": "2025-01-29T14:30:45.123456Z",
    "github_url": "https://github.com/TYDev01/Hng12_Task_0"
}

Hire Python Developers From HNG

For hiring Python developers, check out: https://hng.tech/hire/python-developers

About

Just Task_0 of HNG12

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages