A comic book database manager and API server. Designed to be compatible with ComicStreamer's API while adding new useful and secure features.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
588 B

package main
import (
"git.chiefnoah.tech/chiefnoah/gocomics/config"
"git.chiefnoah.tech/chiefnoah/gocomics/scanner"
"git.chiefnoah.tech/chiefnoah/gocomics/web"
"git.chiefnoah.tech/chiefnoah/gocomics/database"
"log"
"os"
)
//Let's get started!
func main() {
f, err := os.OpenFile("log.txt", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
log.Fatal("Can't write log file! D:")
}
defer f.Close()
//log.SetOutput(f)
database.Init()
c := config.LoadConfigFile()
go comicscanner.Scan(c.ComicFolders[0])
//go comicscanner.Scan(c.ComicFolders[1])
web.Start(c)
}