open-communities Svelte Themes

Open Communities

Find inclusive, peace-supporting Jewish communities

Open Communities

Open Communities is a Sveltekit application that allows users to search for Jewish congregations that are welcoming of Jews opposed to Israel's war in Gaza. The app could feasibly be adapted to any kind of directory, but not without some considerable work.

Installation

Install PNPM somewhere in your path. Then:

git clone https://github.com/selfagency/open-communities.git
cd open-communities
pnpm i
pnpm run deps:up

Log into PocketBase, create an admin account, then import pb_schema.json. You can also create a user account and grant it 'admin' privileges. Admins can only be enabled through the backend, not through the frontend app. You'll also need to import a dump of the location data, which is a little large to contain in the repo, so be in touch. I may switch to using an external API in the near future. Then log into Cap and create an admin user, an API key, and new site key.

Create an .env.dynamic file containing:

ADMIN_EMAIL=""
CAPTCHA_SITE_SECRET=""
NODE_ENV="development"
PUBLIC_API_ENDPOINT="http://localhost:8090"
PUBLIC_CAPTCHA_ENDPOINT="http://localhost:3001"
PUBLIC_HOSTNAME="http://localhost:5173"
SMTP_HOST="localhost"
SMTP_PORT="1025"

And finally an .env.test file containing those same variables, but for testing.

ADMIN_EMAIL=""
CAP_API_KEY=""
NODE_ENV="test"
PB_TEST_ADMIN="[email protected]"
PB_TEST_PASSWORD="i3_NL-dfzzFt5TX"
PUBLIC_API_ENDPOINT="http://localhost:8090"
PUBLIC_CAPTCHA_ENDPOINT="http://localhost:3001"
PUBLIC_HOSTNAME="http://localhost:4173"
SMTP_HOST="localhost"
SMTP_PORT="1025"

Development

pnpm run deps:up & pnpm run dev

# after dev
pnpm run deps:down

Production

This project is intended to be deployed to Vercel with an existent PocketBase backend. Just link the repo from your own GitHub or GitLab to your Vercel project and it will deploy automatically with each push to the main branch.

Credits

Made with:

Fonts provided by The Braille Institute and Prioritype Co.

Icons by Lucide and The Noun Project (Ferifrey, Agarunov Oktay-Abraham, filosovis, and Arthur Shlain)

Illustrations by Icons8

Map data provided by OpenStreetMaps

Top categories

Loading Svelte Themes