Git Product home page Git Product logo

sistem-informasi-jadwal-sholat-api's Introduction

Siforlat Backend use node.js

Siforlat API


Sistem Informasi Jadwal Sholat

This API use PrayTimes.js library, you can visit PrayTimes.org for more information

Source Code

Api Documentation

Siforlat use stoplight as API Documenation, please visit Siforlat API Documentation

Installation

npm install

npm install --save-dev nodemon

npm install express โ€”-save

npm install babel-cli --save

npm install babel-preset-es2015 --save

Run Server

npm run start

or via docker:

docker build -t siforsolat .
docker run -p 5000:5000 -d siforsolat

Use app

running in local http://localhost:5000/api/v1/prayTimes?latitude=-6.300060&longitude=106.670181&duration=100

running in staging https://siforlat-api.herokuapp.com/api/v1/prayTimes?latitude=-6.300060&longitude=106.670181&duration=100

running in Production https://api.siforlat.com/api/v1/prayTimes?latitude=-6.300060&longitude=106.670181&duration=100

{
  "latitude": -6.300060,
  "longitude": 106.670181,
  "duration": 10
}

duration is use for how many days u want get prayertimes from current date

Example result

{
    "success": true,
    "schedules": [
      {
        "imsak": "04:06",
        "fajr": "04:16",
        "sunrise": "05:32",
        "dhuhr": "11:46",
        "asr": "15:13",
        "sunset": "18:01",
        "maghrib": "18:01",
        "isha": "19:17",
        "midnight": "23:46",
        "date": "2018-12-11"
      },
      {
        "imsak": "04:06",
        "fajr": "04:16",
        "sunrise": "05:32",
        "dhuhr": "11:47",
        "asr": "15:14",
        "sunset": "18:01",
        "maghrib": "18:01",
        "isha": "19:18",
        "midnight": "23:47",
        "date": "2018-12-12"
      },
      {
        "imsak": "04:07",
        "fajr": "04:17",
        "sunrise": "05:33",
        "dhuhr": "11:47",
        "asr": "15:14",
        "sunset": "18:02",
        "maghrib": "18:02",
        "isha": "19:18",
        "midnight": "23:47",
        "date": "2018-12-13"
      },
      {
        "imsak": "04:07",
        "fajr": "04:17",
        "sunrise": "05:33",
        "dhuhr": "11:48",
        "asr": "15:15",
        "sunset": "18:02",
        "maghrib": "18:02",
        "isha": "19:19",
        "midnight": "23:48",
        "date": "2018-12-14"
      },
      {
        "imsak": "04:07",
        "fajr": "04:17",
        "sunrise": "05:34",
        "dhuhr": "11:48",
        "asr": "15:15",
        "sunset": "18:03",
        "maghrib": "18:03",
        "isha": "19:19",
        "midnight": "23:48",
        "date": "2018-12-15"
      }
    ]
}

sistem-informasi-jadwal-sholat-api's People

Contributors

iqballx avatar muhammadyana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.