Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaimramlan/waktu-solat-api
Malaysia Waktu Solat JSON API (E-Solat API). Data from JAKIM's E-Solat.
https://github.com/zaimramlan/waktu-solat-api
e-solat-api json-api prayer-times ruby-on-rails waktu-solat-api
Last synced: 2 months ago
JSON representation
Malaysia Waktu Solat JSON API (E-Solat API). Data from JAKIM's E-Solat.
- Host: GitHub
- URL: https://github.com/zaimramlan/waktu-solat-api
- Owner: zaimramlan
- License: mit
- Created: 2017-01-31T19:59:42.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2023-03-08T19:47:20.000Z (almost 2 years ago)
- Last Synced: 2023-08-07T04:03:56.046Z (over 1 year ago)
- Topics: e-solat-api, json-api, prayer-times, ruby-on-rails, waktu-solat-api
- Language: Ruby
- Homepage: https://zaimramlan.github.io/waktu-solat-api/
- Size: 1.96 MB
- Stars: 14
- Watchers: 3
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Waktu Solat API
![](https://github.com/zaimramlan/waktu-solat-api/blob/master/docs/images/waktu-solat-api.png)
Malaysia prayer times (waktu solat) JSON API @ E-Solat API. Data from [JAKIM's E-Solat](http://www.e-solat.gov.my).
## Built with Waktu Solat API
[Waktu Solat Malaysia Telegram Bot](https://waktusolatbot.my) by [Zaim Ramlan](https://github.com/zaimramlan)
## About
- Built with Ruby (2.7.3) on Rails (5.2.5)
- First deployed on Heroku on midnight of 01 Feb 2017
- Data updates every midnight## Documentation
[https://zaimramlan.github.io/waktu-solat-api/](https://zaimramlan.github.io/waktu-solat-api/)
## Endpoints
1. https://waktu-solat-api.herokuapp.com/api/v1/prayer_times.json
2. https://waktu-solat-api.herokuapp.com/api/v1/zones.json
3. https://waktu-solat-api.herokuapp.com/api/v1/states.json## Future Improvements
- [ ] Pagination for `/prayer_times.json`
## Contributing
Do fork this project and improve where you see fit. Submit your Pull Request for merge review.
Use the [prepare repository](https://github.com/zaimramlan/waktu-solat-api#prepare-repository) section to help setup the repo on your local environment.## Prepare Repository
Clone the repo and install the dependencies
``` bash
$ git clone https://github.com/zaimramlan/waktu-solat-api.git
$ cd waktu-solat-api
$ bundle install
```Set up the database
``` bash
$ rake db:create db:migrate
```Download the list of states, zones and prayer times
``` bash
$ rake esolat:v2:scrapezones esolat:v2:scrapetimes
```Run the Server
``` bash
$ rails server
```## License
- MIT