require "kemal"
require "stripe"
require "db"
require "pg"

# Routes for user registration, login, and projects CRUD
require "./routes/auth"
require "./routes/projects"

# Initialize the database connection
DB.open "postgres://postgres@localhost/mom" do |db|
  # Routes for authentication and project CRUD

  get "/" do
    "welcome to the management portal"
  end

  Kemal.run
end