Rename to craban

This commit is contained in:
Miguel de la Cruz 2021-09-12 18:57:42 +02:00
parent 38767a78d3
commit ca0bfa2398
217 changed files with 23 additions and 23 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/rmsn.sqlite /server/craban.sqlite

View file

@ -1,12 +1,12 @@
.PHONY: fmt .PHONY: fmt
fmt: fmt:
go fmt ./... cd server && go fmt ./...
.PHONY: mod .PHONY: mod
mod: mod:
go mod vendor cd server && go mod vendor
go mod tidy cd server && go mod tidy
.PHONY: test .PHONY: test
test: test:
go test -v -race ./... cd server && go test -v -race ./...

View file

@ -1,9 +1,9 @@
# RMSN # Craban
## Config ## Config
Default configuration can be found in the [rmsn.yml](./rmsn.yml) file Default configuration can be found in the [craban.yml](./craban.yml)
at the root of the repository. file at the root of the repository.
## Roadmap ## Roadmap
@ -16,6 +16,6 @@ at the root of the repository.
- [ ] Add webapp make targets - [ ] Add webapp make targets
- [ ] Add bundle and install make targets - [ ] Add bundle and install make targets
- [ ] Create basic webapp structure and development workflow - [ ] Create basic webapp structure and development workflow
- [ ] Think of a better name - [X] Think of a better name
- [ ] Add email config and communications - [ ] Add email config and communications
- [ ] Add webpush notifications - [ ] Add webpush notifications

View file

@ -1,3 +0,0 @@
---
database_path: rmsn.sqlite
port: 8080

View file

@ -6,11 +6,11 @@ import (
"os" "os"
"os/signal" "os/signal"
"git.ctrlz.es/mgdelacroix/rmsn/server" "git.ctrlz.es/mgdelacroix/craban/server"
) )
func main() { func main() {
configFlag := flag.String("config", "rmsn.yml", "the configuration path") configFlag := flag.String("config", "craban.yml", "the configuration path")
flag.Parse() flag.Parse()
srv, err := server.NewServerWithConfigPath(*configFlag) srv, err := server.NewServerWithConfigPath(*configFlag)
@ -24,7 +24,7 @@ func main() {
closed := make(chan bool, 1) closed := make(chan bool, 1)
go func() { go func() {
fmt.Println("Starting rmsn") fmt.Println("Starting craban")
if err := srv.Start(); err != nil { if err := srv.Start(); err != nil {
fmt.Fprintf(os.Stderr, "error running server: %s", err) fmt.Fprintf(os.Stderr, "error running server: %s", err)
os.Exit(1) os.Exit(1)

3
server/craban.yml Normal file
View file

@ -0,0 +1,3 @@
---
database_path: craban.sqlite
port: 8080

View file

@ -1,4 +1,4 @@
module git.ctrlz.es/mgdelacroix/rmsn module git.ctrlz.es/mgdelacroix/craban
go 1.17 go 1.17

View file

@ -3,9 +3,9 @@ package server
import ( import (
"fmt" "fmt"
"git.ctrlz.es/mgdelacroix/rmsn/model" "git.ctrlz.es/mgdelacroix/craban/model"
"git.ctrlz.es/mgdelacroix/rmsn/services/store" "git.ctrlz.es/mgdelacroix/craban/services/store"
"git.ctrlz.es/mgdelacroix/rmsn/web" "git.ctrlz.es/mgdelacroix/craban/web"
) )
type Server struct { type Server struct {

View file

@ -3,7 +3,7 @@ package store
import ( import (
"testing" "testing"
"git.ctrlz.es/mgdelacroix/rmsn/model" "git.ctrlz.es/mgdelacroix/craban/model"
"github.com/icrowley/fake" "github.com/icrowley/fake"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -5,7 +5,7 @@ import (
sq "github.com/Masterminds/squirrel" sq "github.com/Masterminds/squirrel"
"git.ctrlz.es/mgdelacroix/rmsn/model" "git.ctrlz.es/mgdelacroix/craban/model"
) )
var userColumns = []string{"id", "name", "mail", "username", "password"} var userColumns = []string{"id", "name", "mail", "username", "password"}

View file

@ -3,7 +3,7 @@ package store
import ( import (
"testing" "testing"
"git.ctrlz.es/mgdelacroix/rmsn/model" "git.ctrlz.es/mgdelacroix/craban/model"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

Some files were not shown because too many files have changed in this diff Show more