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.
- Returns a JSON response with:
- Current datetime (UTC) in ISO 8601 format
- GitHub repository URL
git clone https://github.com/TYDev01/Hng12_Task_0.git
- cd Hng12_Task_0
- python -m venv venv
- source venv/bin/activate # On Windows: venv\Scripts\activate
- pip install -r requirements.txt
- uvicorn main:app --reload
- Once the server is running, visit:
http://127.0.0.1:8000/home
or use curl
- curl http://127.0.0.1:8000/home
{
"email": "tonieschi@gmail.com",
"current_datetime": "2025-01-29T14:30:45.123456Z",
"github_url": "https://github.com/TYDev01/Hng12_Task_0"
}
For hiring Python developers, check out: https://hng.tech/hire/python-developers