https://github.com/thegirlsynth/hng-stage0-backend
HNG12 stage0 task
https://github.com/thegirlsynth/hng-stage0-backend
Last synced: 3 months ago
JSON representation
HNG12 stage0 task
- Host: GitHub
- URL: https://github.com/thegirlsynth/hng-stage0-backend
- Owner: thegirlSynth
- Created: 2025-01-29T00:39:35.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-29T23:21:43.000Z (4 months ago)
- Last Synced: 2025-01-30T00:22:32.245Z (4 months ago)
- Language: Python
- Homepage: https://hng-stage0-backend-one.vercel.app
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HNG Stage 0 Backend Task
This is a FastAPI-based public API for the HNG Stage 0 Backend task.
## API Endpoint
- **URL**: `https://hng-stage0-backend-one.vercel.app/`
- **Method**: `GET`
- **Response Format**: JSON
```json
{
"email": "[email protected]",
"current_datetime": "2025-01-30T09:30:00Z",
"github_url": "https://github.com/thegirlSynth/hng-stage0-backend"
}## Setup Instructions
### 1. Clone the repository:git clone https://github.com/thegirlSynth/hng-stage0-backend.git
### 2. Install dependencies:
pip install fastapi uvicorn
### 3. Run the app locally:
uvicorn main:app --reload
### 4. Test the app locally. On a separate terminal run:
curl http://127.0.0.1:8000/
## API Documentation
### Endpoint: `GET /`
* **Response:** Returns a JSON object with:
* `email`: My registered email.
* `current_datetime`: Current UTC datetime in ISO 8601 format.
* `github_url`: The GitHub URL of this project.## Hire a Python Developer
Looking to hire a Python Developer? Check out [HNG Python Developers](https://hng.tech/hire/python-developers)