https://github.com/miskibin/sejm-stats
About site for polish parliament with extended functionality
https://github.com/miskibin/sejm-stats
django nextjs parliament react tailwind website
Last synced: 28 days ago
JSON representation
About site for polish parliament with extended functionality
- Host: GitHub
- URL: https://github.com/miskibin/sejm-stats
- Owner: miskibin
- License: other
- Created: 2024-07-23T19:33:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T19:25:24.000Z (7 months ago)
- Last Synced: 2024-10-21T22:46:27.992Z (7 months ago)
- Topics: django, nextjs, parliament, react, tailwind, website
- Language: Jupyter Notebook
- Homepage: https://sejm-stats.pl/
- Size: 19.6 MB
- Stars: 25
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
[](https://app.codacy.com/gh/miskibin/sejm-stats/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
**IMPORTANT**
Project is no longer maintained, go to [new version](https://github.com/miskibin/sejmofil)
Sejm Stats
Making Polish parliamentary data more accessible
and understandable for citizens.
๐ Dokumentacja (PL) ยท
๐ Project Docs ยท
๐ฌ Discord ยท
โค๏ธ Patronite ยท
๐ฅ YouTube
๐ AI repository## ๐ Quick Start
To get started with development:
1. Clone the repository:
```
git clone https://github.com/miskibin/sejm-stats
cd sejm-stats
```2. Choose your development environment:
- [Backend Development](#backend-development)
- [Frontend Development](#frontend-development)## ๐ ๏ธ Development Setup
Sejm-stats is split into two environments: backend and frontend.
### Backend Development
1. Create a `.env` file in the root directory with the following content:
```
POSTGRES_DB=example
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
DATABASE_HOST=db
DEBUG=true
SECRET_KEY=does_not_matter
EMAIL_HOST_PASSWORD=only_used_when_debug_is_false
BUILD_TARGET=prod
C_FORCE_ROOT=true
```2. Use Visual Studio Code and open the project in a devcontainer.
3. Run the server:
```
python manage.py runserver 0.0.0.0:8000
```4. To update data, run the Celery worker:
```
celery -A core worker -l info
```> [!Note]
> ๐ค The UI for the Django part is obsolete and will be removed soon.### Frontend Development
> [!Tip]
> ๐ค If you don't want to run the backend locally, you can use the production API. Set `NEXT_PUBLIC_API_URL=https://sejm-stats.pl/apiInt` in `/frontend/.env` file.1. [Install npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2. Navigate to the frontend directory:
```
cd ./frontend
```3. Install dependencies:
```
npm i
```4. Run the development server:
```
npm run dev
```## ๐ค Contributing
When creating a pull request, we enforce a specific title format using [blumilksoftware/action-pr-title](https://github.com/blumilksoftware/action-pr-title) GitHub action. The rules are:
- `#123 - Some PR title` - for PRs that deal with a specific issue, where `123` is the issue number
- `- Some PR title` - for PRs that don't have a related issueFor any inquiries or contributions, please refer to our [GitHub repository](https://github.com/michalskibinski109/sejm-stats) or join our Discord server. Your support through Patronite or feedback on YouTube is also highly appreciated.
> [!Tip]
> ๐ค If you have any questions, feel free to ask on [Discord](https://discord.com/invite/zH2J3z5Wbf)!Sejm-stats is open for contributions!