Function backend::main

source ·
pub(crate) fn main() -> Result<()>
Expand description

Start of backend code

Run the backend of the project. Used to server the pages and provide a rest API to verify info and save/get info from database.

Parts of the code

  • Get the config files (server.config, secret.config)
  • Setup Logger
  • Call setup db
  • Setup SSL
  • Setup actix HTTP server
  • Start actix server