A simple public rest api to get the prayers times for cities in Morocco based on the official data form the Moroccan Ministry
This is a small nodejs/express server that fetches data from a mongodb database.
The source of the data is the official website of the Moroccan Ministry, the code behind the scrapping process in available in this github repo, the result is saved to a json file and then imported to a monogo database.
-
The api is freely hosted on heroku here and there is a swagger ui to document and test the API.
-
I Also made a small-really-ugly-just-working react application to consume this API:
-
A mobile application
-
A google chrome extension
- Add Validation for all inputs
- Add Swagger
- Add the optiion to return times as Datetime instead of strings (Loading ...)
- Add docker support ( Coming soon)
If you think this piece of code is anyhow useful, please feel free to contribute, star ⭐️⭐️ and share 🙏 🙏
- Fork
- Star and share the project so it reaches more people
- Test and give your feedback
- Correct the data
- Provide translations
- Help with the documentation
- Help with UI/UX for the react app and the chrome extension
This project is under the MIT license.
Made With ❤️ in Ramadan