diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..fbd6da0 --- /dev/null +++ b/.babelrc @@ -0,0 +1,6 @@ +{ + "presets": [ + "@babel/preset-env", + "@babel/preset-react" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 14d03f0..55c9875 100644 --- a/README.md +++ b/README.md @@ -1,2489 +1,6 @@ -
- -
+# Webpack +Bundles all the seperated files into big bundles. FAST delivery this way, the less +files the server has to serve the better. -[![Netlify Status](https://api.netlify.com/api/v1/badges/374fbcfb-e2e9-451c-a970-310194e51027/deploy-status)](https://app.netlify.com/sites/mosque-screen/deploys) - -# Mosque Screens - -Build in association with [East London Mosque](https://www.eastlondonmosque.org.uk/). - -## Help make Mosque Screens sustainable - -The Mosque Screens project is a self funded project and does not have any financial income. As with all tech projects, there are costs which are incurred by the maintainers. These include: Servers, domains, databases etc. - -Please help by donating to the project via the following [link](https://donate.mosque.tech). - -You can donate as little or as much as you want, there is no obligation. Each penny will be used to pay for the running of these screens and keep it free for mosques around the world. - - - Donate - - -## Roadmap -[View roadmap](https://github.com/DilwoarH/Mosque-Screen/projects/1?fullscreen=true) - -## Need help? - -If you need support, contact us on: [mosque.screens786@gmail.com](mailto:mosque.screens786@gmail.com) - -Join our discord channel here: https://discord.gg/CG7frj2 - -## Contributors wall of fame - -This is a list of everyone that has contributed to the project, please make dua for everyone for their efforts. May Allah reward everyone. Ameen. - -**If you want to be part of this amazing group of people, make your contribution to the project!** - -*(This list is ordered alphabetically)* - -| Name | Role | Github | -| ---- | ---- | ------ | -| Al Habib Hassan | Software Engineer | https://github.com/alhabibhasan | -| Didar Hussain | Designer | - | -| Dilwoar Hussain | Software Engineer | https://github.com/DilwoarH | -| Fokrul Amin | IT Engineer | - | -| Ikbal Hussain | Interaction Designer | - | -| Mahmud Hussain | Software Engineer | https://github.com/MahmudH | -| Moiz Qureshi | Software Engineer | https://github.com/moiz-qureshi | -| Ridhwaan-ur Rahman | Business Intelligence | - | -| Usamah K Ward | Business Intelligence | - | -| Mohamed Abdisalam | Product Management | - | - -## Current customers / examples -1. Demo (https://screen.mosque.tech/) -2. East London Markazi (UK 🇬🇧) (https://markazi.mosque.tech/) -3. Beacon Tree Masjid (UK 🇬🇧) (https://btm.mosque.tech/) -4. East London Mosque (UK 🇬🇧) (https://elm.mosque.tech/) -5. Masjid Al-Rahman (USA 🇺🇸) (https://display.masjidalrahman.com/) -6. Redbridge Islamic Centre (UK 🇬🇧) (https://redbridge.mosque.tech/) [Single View Mode] -7. Jami Masjid & Islamic Centre (UK 🇬🇧) (https://jmic.mosque.tech/) -8. Essex Jamme Mosque (UK 🇬🇧) (https://essex.mosque.tech/) -9. Westferry Mosque (UK 🇬🇧) (https://westferry.mosque.tech/) -10. Noor Al Hadi Mosque (UK 🇬🇧) (https://noor-al-hadi.mosque.tech/) - -(If you want a **your-mosque.mosque.tech** domain, please contact the team via the support channel) - -## Easy one click deployment -[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/DilwoarH/Mosque-Screen) - -### Other unsupported deployments -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/DilwoarH/Mosque-Screen) - -## Use your own data - -### 1. Make a copy of the following spreadsheet: - -https://docs.google.com/spreadsheets/d/1yVlGjnEhKLi5DSOuJMm7-ec5-iFvuiR7WkbzMdbFP9s/edit?usp=sharing - ---- - -### 2. Publish the spreadsheet on Google Sheet: File > publish to the web > Publish entire document as a CSV - - - - ---- - -### 3. Copy CSV share link for `Prayer times` - - - ---- - -### 4. Copy CSV share link for `App config` - - - ---- - -### 5. Copy CSV share link for `Hadith config` - - - - -### 6. Add the following ENV variables in the application - -| KEY | VALUE | -| --- | ----- | -| REACT_APP_PRAYER_DATA_SPREADSHEET_URL | {link_from_step_3} | -| REACT_APP_APP_CONFIG_SPREADSHEET_URL | {link_from_step_4} | -| REACT_APP_HADITH_DATA_SPREADSHEET_URL | {link_from_step_5} | - - - - ---- -### 7. Test the app - -**IMPORTANT: Make sure you use CSV** - ---- - -## Using Chromium to start browser on load - -### How to get chromium on raspberry pi -https://tutorials-raspberrypi.com/google-chrome-for-raspberry-pi/ - -**Helpful guides to start on start up:** -- https://github.com/OpenLabTools/OpenLabTools/wiki/Launching-bash-scripts-at-startup -- https://linux.tips/tutorials/how-to-auto-start-chromium-in-full-screen-mode-to-a-website-url-on-ubuntu-os - -### Raspberry Pi Instructions -1. Install [chromium-browser](https://www.chromium.org/getting-involved/download-chromium) - **Do this step only if you do not have Chromium** -2. Open Terminal -3. type `sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart` -4. Add the following line at the end of the file -``` -@chromium-browser --app=https://screen.mosque.tech/ --start-fullscreen -``` -5. Reboot - - -### Mac script - (with normal chrome browser installed) -`start-mosque-screen.sh` -``` -#!/bin/bash -chrome-debug --app=https://screen.mosque.tech/ --start-fullscreen -``` - ---- - -## Screenshots of prototype - -![BTM-slide-1](https://github.com/DilwoarH/Mosque-Screen/raw/master/screenshots/BTM-slide-1.png "BTM-slide-1") -![BTM-slide-2](https://github.com/DilwoarH/Mosque-Screen/raw/master/screenshots/BTM-slide-2.png "BTM-slide-2") -![BTM-Next-Salaah](https://github.com/DilwoarH/Mosque-Screen/raw/master/screenshots/BTM-Next-Salaah.png "BTM-Next-Salaah") -![BTM-7days](https://github.com/DilwoarH/Mosque-Screen/raw/master/screenshots/BTM-7days.png "BTM-7days") -![BTM-Black-Screen](https://github.com/DilwoarH/Mosque-Screen/raw/master/screenshots/BTM-Black-Screen.png "BTM-Black-Screen") -![HadithOfTheDay](https://github.com/DilwoarH/Mosque-Screen/raw/master/screenshots/HadithOfTheDayView.png "HadithOfTheDay") - -### Single view mode -![SingleView](https://github.com/DilwoarH/Mosque-Screen/raw/master/screenshots/SingleViewScreenshot.png "Single-View") - - -## Branding - -### Colours - -- ![#6156a5](https://placehold.it/15/6156a5/000000?text=+) `#6156a5` -- ![#a2469a](https://placehold.it/15/a2469a/000000?text=+) `#a2469a` - -- -
- -### Full Logo - -- -
- -### Icon only logo - -- -
- -### Logo Black - -- -
- -### Logo White - -- -
- -## Folder Structure - -``` -Mosque-Screen/ - README.md - node_modules/ - package.json - public/ - index.html - favicon.ico - src/ - App.css - App.js - App.test.js - index.css - index.js - logo.svg -``` - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.