ahmedmohamed24 / golang-prayers

calculate the prayer times for the gived coordinates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Prayers

Islamic Prayer times calculations

Features

  • Docker setup for containerization, enabling easy deployment, and hot reloading.
  • Utilizing Redis as a caching layer to improve performance, optimize data retrieval, and reduce the number of requests made to third-party APIs.
  • Using PostgreSQL as the primary database.
  • Using the Gin web framework.
  • Implementing a data seeding process to populate the database with initial data from a JSON file.
  • Integrating Google APIs to fetch user location and retrieve the corresponding timezone based on latitude and longitude coordinates.
  • Providing Islamic prayer times for the user based on their provided coordinates.

Installation

This project requires GoLang to run.

clone the project and ``.

cd  golang-prayers
docker-compose up -d --build
docker logs -f backend #to monitor the hot reload result

You can test it by

curl --location 'http://localhost/api/v1/azan/' \
--header 'Content-Type: application/json' \
--data '{
    "lat": 30.012000,
    "lng": 31.194375
}'

About

calculate the prayer times for the gived coordinates


Languages

Language:Go 97.7%Language:Dockerfile 2.3%