chore: rename Citadel to Taskcafe

This commit is contained in:
Jordan Knott
2020-08-06 20:50:35 -05:00
parent 7ffd0ff6b8
commit 5dbdc20b36
51 changed files with 948 additions and 1088 deletions

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/jordanknott/project-citadel/internal/commands"
"github.com/jordanknott/taskcafe/internal/commands"
_ "github.com/lib/pq"
)

View File

@ -7,8 +7,8 @@ import (
"github.com/BurntSushi/toml"
"github.com/jmoiron/sqlx"
"github.com/jordan-wright/email"
"github.com/jordanknott/project-citadel/pg"
"github.com/jordanknott/project-citadel/router"
"github.com/jordanknott/taskcafe/pg"
"github.com/jordanknott/taskcafe/router"
_ "github.com/lib/pq"
"golang.org/x/crypto/bcrypt"
"io/ioutil"
@ -54,7 +54,7 @@ func SendEmail() {
panic(err)
}
user := UserRegistration{Username: "jordanthedev", AppName: "Citadel", AppURL: "http://localhost:3000/", Year: "2020"}
user := UserRegistration{Username: "jordanthedev", AppName: "Taskcafe", AppURL: "http://localhost:3000/", Year: "2020"}
tmpl, err := template.New("registered").Parse(string(emailTmpl))
if err != nil {
panic(err)
@ -67,9 +67,9 @@ func SendEmail() {
result := tpl.String()
e := email.NewEmail()
e.From = "Jordan Knott <no-reply@citadel.com>"
e.From = "Jordan Knott <no-reply@taskcafe.com>"
e.To = []string{"jordan@jordanthedev.com"}
e.Subject = "Jordan Knott (@jordanthedev) invited you to join the team \"Paradox\" on Citadel"
e.Subject = "Jordan Knott (@jordanthedev) invited you to join the team \"Paradox\" on Taskcafe"
e.Text = []byte("Text Body is, of course, supported!")
e.HTML = []byte(result)
e.Send("localhost:1025", smtp.PlainAuth("", "test@gmail.com", "password123", "localhost"))
@ -95,7 +95,7 @@ func Seed() {
if err != nil {
panic(err)
}
db, err := sqlx.Connect("postgres", "user=postgres password=test host=0.0.0.0 dbname=citadel sslmode=disable")
db, err := sqlx.Connect("postgres", "user=postgres password=test host=0.0.0.0 dbname=taskcafe sslmode=disable")
repository := pg.NewRepository(db)
for _, color := range labelColors.Color {
fmt.Printf("%v\n", color)

View File

@ -8,7 +8,7 @@ import (
"github.com/RichardKnop/machinery/v1/config"
"github.com/google/uuid"
"github.com/jmoiron/sqlx"
"github.com/jordanknott/project-citadel/pg"
"github.com/jordanknott/taskcafe/pg"
_ "github.com/lib/pq"
)