https://github.com/janosh/afara
Homepage of the German student-run non-profit Afara e.V. built Svelte and Contentful.
https://github.com/janosh/afara
algolia contentful education graphql non-profit ssr svelte
Last synced: 2 months ago
JSON representation
Homepage of the German student-run non-profit Afara e.V. built Svelte and Contentful.
- Host: GitHub
- URL: https://github.com/janosh/afara
- Owner: janosh
- License: mit
- Created: 2021-01-21T12:21:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-06T16:32:38.000Z (4 months ago)
- Last Synced: 2025-02-01T11:11:05.680Z (3 months ago)
- Topics: algolia, contentful, education, graphql, non-profit, ssr, svelte
- Language: Svelte
- Homepage: https://afara.foundation
- Size: 412 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
Afara e.V.
[](https://github.com/janosh/afara/actions/workflows/gh-pages.yml)
[](https://github.com/janosh/afara/actions/workflows/lighthouse.yml)
[](https://results.pre-commit.ci/latest/github/janosh/afara/main)
Afara is a non-profit organization from Würzburg, Germany aiming to support educational and youth welfare projects in Africa.
This site is built with [Svelte](https://github.com/sveltejs/svelte) and [Contentful](https://contentful.com).
## Setup
Running this site locally requires [`git`](https://git-scm.com) and [`pnpm`](https://pnpm.io) (or [`npm`](https://npmjs.com)). With those installed, do:
1. Clone the repo and change into its directory.
```sh
git clone https://github.com/janosh/afara && cd afara
```2. (optional) Setup [`pre-commit` hooks](https://pre-commit.com).
```sh
pre-commit install
```3. Install dependencies.
```sh
pnpm
```4. Copy `.env.example` to `.env`.
```sh
cp .env.example .env
```Then open `.env` and insert your [Contentful space ID and access token](https://contentful.com/developers/docs/references/authentication). These are found in the settings menu of a Contentful space under 'API keys'.
5. Start the dev server.
```sh
pnpm dev
```## Deployment
This site is deployed as static HTML to [GitHub Pages](https://github.com/janosh/afara/deployments/activity_log) ([by this action](.github/workflows/gh-pages.yml)).