https://github.com/tydev01/hng12_task_0
Just Task_0 of HNG12
https://github.com/tydev01/hng12_task_0
Last synced: 9 months ago
JSON representation
Just Task_0 of HNG12
- Host: GitHub
- URL: https://github.com/tydev01/hng12_task_0
- Owner: TYDev01
- Created: 2025-01-30T00:45:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-30T07:53:25.000Z (about 1 year ago)
- Last Synced: 2025-06-04T02:26:59.624Z (10 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
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