🇵🇱 Prawdopodobnie najprostsza i najszybsza wyszukiwarka szkół średnich.
🇬🇧 Probably the simplest and fastest high schools lookup service.
NOTE: This project relies on Next.js Framework.
- Clone this repo ⬇️
git clone https://github.com/po8klasie/web-frontend
-
In root directory of the project, create
.env
file with specified environmental variables (see below) 📄 -
Install dependencies using yarn 📦
yarn
- Run the project 🚀
yarn dev
Name | Required | Description |
---|---|---|
API_URL |
✔️ | Url where the API is hosted (do NOT include a trailing slash) |
APP_ENVIRONMENT |
❌ | e.g. production , test . It's used by Sentry and displayed in the footer. |
APP_FRONTEND_RELEASE |
❌ | e.g. docker image tag. It's used by Sentry and displayed in the footer. |
MAPBOX_ACCESS_TOKEN |
✔️ | Mapbox access token. (We'll be adding OSM support soon) |
PUBLIC_SENTRY_DSN |
❌ | Sentry DSN. If it's not specified, Sentry client is not initialized. |
POSTHOG_API_KEY |
❌ | Posthog API key. If it's not specified, Posthog Analytics client is not initialized. |
NOTE: If you don't want to spin up local API server, for development purposes use
https://test.po8klasie.pl/api
asAPI_URL
.
Available linter/formatter commands:
yarn lint:check
yarn format:check
yarn lint:fix
yarn format:write
If you want to develop front-end only, you are good to go! Just insert URL of the API server in .env
file.
If you want to develop front-end simultaneously with back-end:
- check out our po8klasie-fastapi repo for docs on how to spin up backend
- learn how po8klasie handles data management (see po8klasie-data-sources repo)
We publish versioned ghcr.io/po8klasie/web-frontend
docker image. Remember to set up env vars according to "Environmental variables" section.
You can find detailed guide of how to set up po8klasie for production use in our infra repo.
- To learn more about Next.js Framework, go to Next.js website.
- To learn React, check out the React documentation.
This is a civic tech and open-source project crafted by volunteers. Core team members are listed on po8klasie.pl website.
Our partners: