https://github.com/raphaelbh/timezone-api
Timezone API is a simple web service that returns the current date and time considering a given time zone.
https://github.com/raphaelbh/timezone-api
api date datetime docker docker-compose dockerfile dockerhub flask github-actions heroku heroku-deployment open-api open-api-specification python rest-api swagger swagger-ui time timezone
Last synced: 2 months ago
JSON representation
Timezone API is a simple web service that returns the current date and time considering a given time zone.
- Host: GitHub
- URL: https://github.com/raphaelbh/timezone-api
- Owner: raphaelbh
- License: mit
- Created: 2022-02-03T01:01:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T00:52:01.000Z (almost 2 years ago)
- Last Synced: 2025-01-27T10:41:38.637Z (4 months ago)
- Topics: api, date, datetime, docker, docker-compose, dockerfile, dockerhub, flask, github-actions, heroku, heroku-deployment, open-api, open-api-specification, python, rest-api, swagger, swagger-ui, time, timezone
- Language: Python
- Homepage: https://timezone-api-01.herokuapp.com/api/v1/swagger
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timezone API
[](#)
[](#)Timezone API is a simple web service that provides useful time zone services to external third parties.
This project was created with the purpose of deepening knowledge in python, openapi specification, github actions and heroku integration.
## Demo
[https://timezone-api.onrender.com/api/v1/swagger/](https://timezone-api.onrender.com/api/v1/swagger/)
## Requirements
[](https://www.docker.com/)
## Installation
```bash
$ docker-compose up -d
or
$ docker run -p 5000:5000 -e PORT=5000 -d raphaelbh/timezone-api
```
## Usage```bash
$ curl http://localhost:5000/api/v1/now
$ curl http://localhost:5000/api/v1/timezones
```## Running Tests
```bash
$ export PYTHONPATH=application
$ pytest --cache-clear --cov=application tests/
```## Tech Stack
[](https://www.docker.com/)
[](https://www.python.org/)
[](https://flask.palletsprojects.com/en/2.0.x/)
[](https://swagger.io/)
[](https://heroku.com)## Reference
- https://devcenter.heroku.com/articles/container-registry-and-runtime
## Feedback
If you have any feedback, please contact me at [email protected]
[](https://github.com/raphaelbh)
[](https://www.linkedin.com/in/raphaelbh/)