Skip to content

demokratie-live/democracy-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

161 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot

DEMOCRACY Server for the DEMOCRACY App  

Build Status

The Serversoftware for the DEMOCRACY APP. This is an API Defintion and Server for Data required and created by the DEMOCRACY App.

Tech Stack

More Dependecies

Projekt Struktur

Prerequisites

Getting started

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.)

Compile and start

pnpm dev

Import Data from local Bundestag.io Server

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.

Test Project

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.ts extension
  • Integration Tests: Located in src/graphql/resolvers/ with .integ.ts extension
  • Configuration: See vitest.config.unit.ts and vitest.config.integration.ts

Development Server: Uses tsx for fast TypeScript execution with hot-reload.

Diagrams

All sorts of visual Documentation.

Server <-> Bundestag.io

Database Model Prototyp

Client -> Server: Increase Activity

Client -> Server: Authentification

Contributing

Anyone and everyone is welcome to contribute. Start by checking out the list of open issues.

License

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

About

GraphQL API Server for the democracy api

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages