diff --git a/.env.example b/.env.example index e1e6449..09a7702 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ HOST=example.com PORT=8080 JWT_SECRET=abc123 CORS_ALLOWED_ORIGINS=* -DB_FILE=./gocms.db +DB_FILE=./renewcms.db DOCKER_DB_FOLDER=./data SMTP_EMAIL=a@b.c SMTP_PASSWORD=12341234 diff --git a/README.md b/README.md index f1f3a36..7f43be1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# GoCMS +# RenewCMS ## 🚧 This project is under development ! @@ -46,7 +46,7 @@ of course required, but not necessarily via the `.env` file. | PORT | int | port the API will use | required | | JWT_SECRET | string | secret for the jwt auth | required | | CORS_ALLOWED_ORIGINS | string | allowed origins for CORS | required, semicolon separated list | -| DB_FILE | string | path to the sqlite db file | required, can be at the root but name still required (e.g. `./gocms.db`) ; have to end up with `.db` | +| DB_FILE | string | path to the sqlite db file | required, can be at the root but name still required (e.g. `./RenewCMS.db`) ; have to end up with `.db` | | DOCKER_DB_FOLDER | string | path to the sqlite db file's folder | required with docker, this will basically be the host machine folder (e.g. `./data`) that contains the sqlite db file | | SMTP_EMAIL | string | sender email | required | | SMTP_PASSWORD | string | smtp account password | required | diff --git a/adapters/secondary/gateways/articleRepository.go b/adapters/secondary/gateways/articleRepository.go index f219b1e..ff444dc 100644 --- a/adapters/secondary/gateways/articleRepository.go +++ b/adapters/secondary/gateways/articleRepository.go @@ -1,9 +1,9 @@ package gateways import ( - entity "GoCMS/adapters/secondary/gateways/models" - domain "GoCMS/domain/article" - "GoCMS/domain/gateways" + entity "RenewCMS/adapters/secondary/gateways/models" + domain "RenewCMS/domain/article" + "RenewCMS/domain/gateways" "gorm.io/gorm" ) diff --git a/adapters/secondary/gateways/imageRepository.go b/adapters/secondary/gateways/imageRepository.go index ee3f9b7..9ac7a98 100644 --- a/adapters/secondary/gateways/imageRepository.go +++ b/adapters/secondary/gateways/imageRepository.go @@ -1,9 +1,9 @@ package gateways import ( - entity "GoCMS/adapters/secondary/gateways/models" - "GoCMS/domain/gateways" - domain "GoCMS/domain/image" + entity "RenewCMS/adapters/secondary/gateways/models" + "RenewCMS/domain/gateways" + domain "RenewCMS/domain/image" "errors" "github.com/google/uuid" "gorm.io/gorm" diff --git a/adapters/secondary/gateways/mail/templates/mailValidation.html b/adapters/secondary/gateways/mail/templates/mailValidation.html index f12683f..27bb96a 100644 --- a/adapters/secondary/gateways/mail/templates/mailValidation.html +++ b/adapters/secondary/gateways/mail/templates/mailValidation.html @@ -2,11 +2,11 @@

- G - GoCMS + G + RenewCMS

-

You or someone tried to create a GoCMS admin account with this e-mail address. If you are not responsible for +

You or someone tried to create a RenewCMS admin account with this e-mail address. If you are not responsible for this, please do not validate the account creation.

If you want to validate the account creation, please click HERE. diff --git a/adapters/secondary/gateways/mail/templates/passwordReset.html b/adapters/secondary/gateways/mail/templates/passwordReset.html index 8fe8f05..5a4555f 100644 --- a/adapters/secondary/gateways/mail/templates/passwordReset.html +++ b/adapters/secondary/gateways/mail/templates/passwordReset.html @@ -2,11 +2,11 @@

- G - GoCMS + G + RenewCMS

-

You or someone tried to create reset your GoCMS account with this e-mail address. If you are not responsible for +

You or someone tried to create reset your RenewCMS account with this e-mail address. If you are not responsible for this, please do not validate the password reset.

If you want to reset your password, please click HERE. diff --git a/adapters/secondary/gateways/mailRepository.go b/adapters/secondary/gateways/mailRepository.go index 0121fd7..9e1b600 100644 --- a/adapters/secondary/gateways/mailRepository.go +++ b/adapters/secondary/gateways/mailRepository.go @@ -1,7 +1,7 @@ package gateways import ( - "GoCMS/domain/gateways" + "RenewCMS/domain/gateways" "bytes" "embed" "html/template" @@ -44,12 +44,12 @@ func (m MailRepository) Send(receiverAddress string, templateName string, data a msg := gomail.NewMessage() msg.SetHeaders(map[string][]string{ - "From": {"GoCMS <" + from + ">"}, + "From": {"RenewCMS <" + from + ">"}, "To": {receiverAddress}, "MIME-version": {"1.0"}, "Content-Type": {"text/html"}, "charset": {"UTF-8"}, - "Subject": {"GoCMS | Action required"}, + "Subject": {"RenewCMS | Action required"}, }) msg.SetBody("text/html", body.String()) diff --git a/adapters/secondary/gateways/pageRepository.go b/adapters/secondary/gateways/pageRepository.go index 2ec4d04..12bba13 100644 --- a/adapters/secondary/gateways/pageRepository.go +++ b/adapters/secondary/gateways/pageRepository.go @@ -1,7 +1,7 @@ package gateways import ( - "GoCMS/domain/gateways" + "RenewCMS/domain/gateways" "bytes" "embed" "html/template" diff --git a/adapters/secondary/gateways/userRepository.go b/adapters/secondary/gateways/userRepository.go index b0e5561..52fd4c9 100644 --- a/adapters/secondary/gateways/userRepository.go +++ b/adapters/secondary/gateways/userRepository.go @@ -1,10 +1,10 @@ package gateways import ( - entity "GoCMS/adapters/secondary/gateways/models" - "GoCMS/domain/gateways" - "GoCMS/domain/user" - domain "GoCMS/domain/user" + entity "RenewCMS/adapters/secondary/gateways/models" + "RenewCMS/domain/gateways" + "RenewCMS/domain/user" + domain "RenewCMS/domain/user" "golang.org/x/crypto/bcrypt" "gorm.io/gorm" ) diff --git a/adapters/secondary/gateways/web/templates/articleCreate.html b/adapters/secondary/gateways/web/templates/articleCreate.html index 39ba457..bce85c0 100644 --- a/adapters/secondary/gateways/web/templates/articleCreate.html +++ b/adapters/secondary/gateways/web/templates/articleCreate.html @@ -1,7 +1,7 @@ - GoCMS | Create article + RenewCMS | Create article {{.Head}}