EtienneDx / git-mentor

A git server with built-in tools for teaching programming
MIT License
2 stars 0 forks source link

Create gmt-server crate #2

Closed EtienneDx closed 9 months ago

EtienneDx commented 9 months ago

Create the actual gmt server project. It should rely on the git-server crate to open the ssh port and accept incoming connections.

For initial setup, we can use a SimpleRepositoryProvider from the example project until the database is added.

User-wise, we can use an enum as follow:

pub enum User {
  Public,
  Connected(UserData),
  Admin,
}

With admin being an ssh super-user 'admin' backed-up with the developers public API keys.