MCPcopy Index your code
hub / github.com/Mosque-Screens/Mosque-Screen

github.com/Mosque-Screens/Mosque-Screen @v5.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v5.0.0 ↗ · + Follow
159 symbols 352 edges 51 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Mosque Screen Logo

Mosque Screen

Build in association with East London Mosque.

Need help?

Join our discord channel here: https://discord.gg/CG7frj2

Current customers / examples

  • Demo (https://screen.mosque.tech/)
  • Beacon Tree Masjid (UK 🇬🇧) (https://beacontree-masjid.mosque.tech/)
  • East London Mosque (UK 🇬🇧) (https://elm.mosque.tech/)
  • Masjid Al-Rahman (USA 🇺🇸) (https://iswccc.herokuapp.com/)

Projects in progress

  • Redbridge Islamic Centre (UK 🇬🇧) (https://redbridge.mosque.tech/)
  • Westferry Mosque (UK 🇬🇧) (https://westferry.mosque.tech/)

(If you want a your-mosque.mosque.tech domain, please contact the team via the support channel)

Easy one click deployment

Deploy Deploy to Netlify

Demo Data

https://docs.google.com/spreadsheets/d/e/2PACX-1vRHjHMDmua4IqpnSiAsLVUJEPtZDcJhziBHivD1fmWJu-StuxpPv-VRzBqX8bcC5499pZ9vBUeD_K5G/pubhtml

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. Add the following ENV variables in the application

KEY VALUE
REACT_APP_PRAYER_DATA_SPREADSHEET_URL https://docs.google.com/spreadsheets/d/e/2PACX-1vRHjHMDmua4IqpnSiAsLVUJEPtZDcJhziBHivD1fmWJu-StuxpPv-VRzBqX8bcC5499pZ9vBUeD_K5G/pub?gid=2084513295&single=true&output=csv
REACT_APP_HADITH_DATA_SPREADSHEET_URL https://docs.google.com/spreadsheets/d/e/2PACX-1vRHjHMDmua4IqpnSiAsLVUJEPtZDcJhziBHivD1fmWJu-StuxpPv-VRzBqX8bcC5499pZ9vBUeD_K5G/pub?gid=223779376&single=true&output=csv
REACT_APP_APP_CONFIG_SPREADSHEET_URL https://docs.google.com/spreadsheets/d/e/2PACX-1vRHjHMDmua4IqpnSiAsLVUJEPtZDcJhziBHivD1fmWJu-StuxpPv-VRzBqX8bcC5499pZ9vBUeD_K5G/pub?gid=2071841746&single=true&output=csv


6. 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 - 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
  1. 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 BTM-slide-2 BTM-Next-Salaah BTM-7days BTM-Black-Screen

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.

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Supported Browsers

By default, the generated project uses the latest version of React.

You can refer to the React documentation for more information about supported browsers.

Supported Language Features and Polyfills

This project supports a superset of the latest JavaScript standard.

In addition to ES6 syntax features, it also supports:

Learn more about different proposal stages.

While we recommend using experimental proposals with some caution, Facebook heavily uses these features in the product code, so we intend to provide codemods if any of these proposals change in the future.

Note that the project only includes a few ES6 polyfills:

If you use any other ES6+ features that need runtime support (such as Array.from() or Symbol), make sure you are including the appropriate polyfills manually, or that the browsers you are targeting already support them.

Also note that using some newer syntax features like for...of or [...nonArrayValue] causes Babel to emit code that depends on ES6 runtime features and might not work without a polyfill. When in doubt, use Babel REPL to see what any specific syntax compiles down to.

Syntax Highlighting in the Editor

To configure the syntax highlighting in your favorite text editor, head to the relevant Babel documentation page and follow the instructions. Some of the most popular editors are covered.

Displaying Lint Output in the Editor

Note: this feature is available with react-scripts@0.2.0 and higher.

It also only works with npm 3 or higher.

Some editors, including Sublime Text, Atom, and Visual Studio Code, provide plugins for ESLint.

They are not required for linting. You should see the linter output right in your terminal as well as the browser console. However, if you prefer the lint results to appear right in your editor, there are some extra steps you can do.

You would need to install an ESLint plugin for your editor first. Then, add a file called .eslintrc to the project root:

{
  "extends": "react-app"
}

Now your editor should report the linting warnings.

Note that even if you edit your .eslintrc file further, these changes will only affect the editor integration. They won’t affect the terminal and in-browser lint output. This is because Create React App intentionally provides a minimal set of rules that find common mistakes.

If you want to enforce a coding style for your project, consider using Prettier instead of ESLint style rules.

Debugging in the Editor

This feature is currently only supported by Visual Studio Code and WebStorm.

Visual Studio Code and WebStorm support debugging out of the box with Create React App. This enables you as a developer to write and debug your React code without leaving the editor, and most importantly it enables you to have a continuous development workflow, where context switching is minimal, as you don’t have to switch between tools.

Visual Studio Code

You would need to have the latest version of VS Code and VS Code Chrome Debugger Extension installed.

Then add the block below to your launch.json file and put it inside the .vscode folder in your app’s root directory.

{
  "version": "0.2.0",
  "configurations": [{
    "name": "Chrome",
    "type": "chrome",
    "request": "launch",
    "url": "http://localhost:3000",
    "webRoot": "${workspaceRoot}/src",
    "sourceMapPathOverrides": {
      "webpack:///src/*": "${webRoot}/*"
    }
  }]
}

Note: the URL may be different if you've made adjustments via the HOST or PORT environment variables.

Start your app by running npm start, and start debugging in VS Code by pressing F5 or by clicking the green debug icon. You can now write code, set breakpoints, make changes to the code, and debug your newly modified code—all from your editor.

Having problems with VS Code Debugging? Please see their troubleshooting guide.

WebStorm

You would need to have WebStorm and JetBrains IDE Support Chrome extension installed.

In the WebStorm menu Run select Edit Configurations.... Then click + and select JavaScript Debug. Paste http://localhost:3000 into the URL field and save the configuration.

Note: the URL may be different if you've made adjustments via the HOST or PORT environment variables.

Start your app by running npm start, then press ^D on macOS or F9 on Windows and Linux or click the green debug icon to start debugging in WebStorm.

The same way you can debug your application in IntelliJ IDEA Ultimate, PhpStorm, PyCharm Pro, and RubyMine.

Formatting Code Automatically

Prettier is an opinionated code formatter with support for JavaScript, CSS and JSON. With Prettier you can format the code you write automatically to ensure a code style within your project. See the Prettier's GitHub page for more information, and look at this page to see it in action.

To format our code whenever we make a commit in git, we need to install the following dependencies:

npm install --save husky lint-staged prettier

Alternatively you may use yarn:

yarn add husky lint-staged prettier

Core symbols most depended-on inside this repo

get
called by 26
src/_components/app-config/app-config.js
getPrayerTimes
called by 8
src/_components/prayer-data/prayer-data.js
render
called by 7
src/Views/View 6/View6.js
isBlackout
called by 5
src/_components/blackout-periods/blackout-periods.js
stringToTime
called by 5
src/_components/next-jamah-time/next-jamah-time.js
render
called by 3
src/_template/App.js
registerValidSW
called by 2
src/registerServiceWorker.js
getAllHadithData
called by 2
src/_components/hadith-data/hadith-data.js

Shape

Method 96
Class 48
Function 15

Languages

TypeScript100%

Modules by API surface

src/_components/hadith-data/hadith-data.js13 symbols
src/_components/prayer-data/prayer-data.js10 symbols
src/_components/blackout-periods/blackout-periods.js10 symbols
src/_components/app-config/app-config.js10 symbols
src/_components/next-jamah-time/next-jamah-time.js9 symbols
src/_components/clock/clock.js8 symbols
src/_components/sunrise-and-zawwal/sunrise-and-zawwal.js7 symbols
src/_components/prayer-times-single-view/prayer-times-single-view.js7 symbols
src/_components/jummah-times/jummah-times.js7 symbols
src/_components/date/date.js7 symbols
src/_components/prayer-times-week-ahead/prayer-times-week-ahead.js6 symbols
src/Slider/Slider.js6 symbols

For agents

$ claude mcp add Mosque-Screen \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact