-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.go
More file actions
37 lines (31 loc) · 722 Bytes
/
main.go
File metadata and controls
37 lines (31 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main
import (
"log"
"github.com/joho/godotenv"
"lite/DB"
scrape "lite/Scrape"
"lite/metrics"
"lite/pkg"
api "lite/server"
_ "github.com/mattn/go-sqlite3"
)
/*
Add notifications on certian conditoons (start , stop, crash) -> textbelt API
Figure out what to do with the location data we are getting
Figure out what to do with the Invalid Date Format we are recieveing
*/
func init() {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
}
func main() {
colorOP := pkg.NewTextStyler()
db := DB.GetStorage()
webCrawler := scrape.Config()
met := &metrics.Metrics{}
s := api.NewServer()
pkg.SetUp(met, db, webCrawler, s)
colorOP.BoldRed("Complete with webscraper")
}