An open-source politician directory project for listing and tracking activities of members of the Cabinet and National Assembly of Thailand. It's run on Gatsby.
Environment | Description |
---|---|
Staging | Non-release features for internal testing |
Production | Public website |
After installing NodeJS and yarn
, you can start in development mode by
yarn start
Your site is running on http://localhost:8000
and GraphQL playground on http://localhost:8000/___graphql
.
Data sources are maintained on NocoDB by contributors. We have script to fetch and transform it into YAML files, which will be consumed by Gatsby.
graph TD
A[NocoDB] -->|yarn sync| B[src/contents/*.yaml]
B -->|gatsby-source-filesystem| C[Gatsby's GraphQL]
C -->|graphql query| D[React frontend]
C --> E[GraphQL playground]
D -->|build| F[Static site]
To sync data and append latest changes to src/contents/*.yaml
, run:
yarn sync
Thank you for your contribution and enjoy coding!
Thai | English |
---|---|
คณะรัฐมนตรี | Cabinet |
พรรคการเมือง | Party |
วุฒิสภา | The Senate |
รัฐสภา | National Assembly of Thailand |
สภาผู้แทนราษฏร | The House of Representatives |
สมาชิกวุฒิสภา (ส.ว.) | Senator |
สมาชิกสภาผู้แทนราษฎร (ส.ส.) | Member of the House of Representatives |
อ่านรายละเอียดได้ที่ ข้อตกลงในการใช้งาน (Terms of Use)