The Serversoftware for the DEMOCRACY APP. This is an API Defintion and Server for Data required and created by the DEMOCRACY App.
- Node.js
- [MongoDB][mongo]
Clone the git repo & run the project
git clone git@github.com:demokratie-live/democracy-server.git
cd democracy-server
pnpm install
Rename the .env.example file to .env (Windows: .env.)
pnpm dev
A local bundestag.io server will automagically scrape the latest procedures and update the democracy-server database. Run a local bundestag.io server according to its README and wait for the cron job to finish.
pnpm lint
pnpm test # Run unit tests
pnpm test:integration # Run integration tests (requires MongoDB and running server)
Testing Framework: This project uses Vitest for testing.
- Unit Tests: Located alongside source files with
.test.tsextension - Integration Tests: Located in
src/graphql/resolvers/with.integ.tsextension - Configuration: See
vitest.config.unit.tsandvitest.config.integration.ts
Development Server: Uses tsx for fast TypeScript execution with hot-reload.
All sorts of visual Documentation.
Anyone and everyone is welcome to contribute. Start by checking out the list of open issues.
Copyright © 2017-present DEMOCRACY Deutschland e.V.. This source code is licensed under the Apache 2.0 license found in the LICENSE file.
Made with ♥ by Team DEMOCRACY (democracy-deutschland.de), startnext contributors and contributors






