#github-api #api-server #mocking #layer #object

fakehub-server

GitHub API Server Stub. Fully functional fake version of a GitHub API that supports all the features and works locally, with no connection to GitHub at all.

8 releases

0.0.10 Oct 9, 2024
0.0.9 Oct 9, 2024
0.0.7 Sep 25, 2024

#342 in HTTP server


Used in fakehub

MIT license

76KB
1K SLoC

Fakehub Server

Server is a fully runnable instance of fakehub, served through HTTP. Server consists of three main layers:

  • Web layer backed by Axum.
  • Object layer, where we operate on mock versions of GitHub objects, generated by github-mirror.
  • Storage layer, where we store and query objects as in memory data structures, like arrays, and hashmaps.

To test it, run this (make sure you are in /server directory):

cargo test

lib.rs:

Fakehub server and storage.

Dependencies

~14–26MB
~376K SLoC