Rename to craban
This commit is contained in:
parent
38767a78d3
commit
ca0bfa2398
217 changed files with 23 additions and 23 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
/rmsn.sqlite
|
||||
/server/craban.sqlite
|
||||
|
|
8
Makefile
8
Makefile
|
@ -1,12 +1,12 @@
|
|||
.PHONY: fmt
|
||||
fmt:
|
||||
go fmt ./...
|
||||
cd server && go fmt ./...
|
||||
|
||||
.PHONY: mod
|
||||
mod:
|
||||
go mod vendor
|
||||
go mod tidy
|
||||
cd server && go mod vendor
|
||||
cd server && go mod tidy
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v -race ./...
|
||||
cd server && go test -v -race ./...
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# RMSN
|
||||
# Craban
|
||||
|
||||
## Config
|
||||
|
||||
Default configuration can be found in the [rmsn.yml](./rmsn.yml) file
|
||||
at the root of the repository.
|
||||
Default configuration can be found in the [craban.yml](./craban.yml)
|
||||
file at the root of the repository.
|
||||
|
||||
## Roadmap
|
||||
|
||||
|
@ -16,6 +16,6 @@ at the root of the repository.
|
|||
- [ ] Add webapp make targets
|
||||
- [ ] Add bundle and install make targets
|
||||
- [ ] Create basic webapp structure and development workflow
|
||||
- [ ] Think of a better name
|
||||
- [X] Think of a better name
|
||||
- [ ] Add email config and communications
|
||||
- [ ] Add webpush notifications
|
||||
|
|
3
rmsn.yml
3
rmsn.yml
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
database_path: rmsn.sqlite
|
||||
port: 8080
|
|
@ -6,11 +6,11 @@ import (
|
|||
"os"
|
||||
"os/signal"
|
||||
|
||||
"git.ctrlz.es/mgdelacroix/rmsn/server"
|
||||
"git.ctrlz.es/mgdelacroix/craban/server"
|
||||
)
|
||||
|
||||
func main() {
|
||||
configFlag := flag.String("config", "rmsn.yml", "the configuration path")
|
||||
configFlag := flag.String("config", "craban.yml", "the configuration path")
|
||||
flag.Parse()
|
||||
|
||||
srv, err := server.NewServerWithConfigPath(*configFlag)
|
||||
|
@ -24,7 +24,7 @@ func main() {
|
|||
closed := make(chan bool, 1)
|
||||
|
||||
go func() {
|
||||
fmt.Println("Starting rmsn")
|
||||
fmt.Println("Starting craban")
|
||||
if err := srv.Start(); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "error running server: %s", err)
|
||||
os.Exit(1)
|
3
server/craban.yml
Normal file
3
server/craban.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
database_path: craban.sqlite
|
||||
port: 8080
|
|
@ -1,4 +1,4 @@
|
|||
module git.ctrlz.es/mgdelacroix/rmsn
|
||||
module git.ctrlz.es/mgdelacroix/craban
|
||||
|
||||
go 1.17
|
||||
|
|
@ -3,9 +3,9 @@ package server
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"git.ctrlz.es/mgdelacroix/rmsn/model"
|
||||
"git.ctrlz.es/mgdelacroix/rmsn/services/store"
|
||||
"git.ctrlz.es/mgdelacroix/rmsn/web"
|
||||
"git.ctrlz.es/mgdelacroix/craban/model"
|
||||
"git.ctrlz.es/mgdelacroix/craban/services/store"
|
||||
"git.ctrlz.es/mgdelacroix/craban/web"
|
||||
)
|
||||
|
||||
type Server struct {
|
|
@ -3,7 +3,7 @@ package store
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"git.ctrlz.es/mgdelacroix/rmsn/model"
|
||||
"git.ctrlz.es/mgdelacroix/craban/model"
|
||||
|
||||
"github.com/icrowley/fake"
|
||||
"github.com/stretchr/testify/require"
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
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"}
|
|
@ -3,7 +3,7 @@ package store
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"git.ctrlz.es/mgdelacroix/rmsn/model"
|
||||
"git.ctrlz.es/mgdelacroix/craban/model"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
0
vendor/github.com/google/uuid/LICENSE → server/vendor/github.com/google/uuid/LICENSE
generated
vendored
0
vendor/github.com/google/uuid/LICENSE → server/vendor/github.com/google/uuid/LICENSE
generated
vendored
0
vendor/github.com/google/uuid/dce.go → server/vendor/github.com/google/uuid/dce.go
generated
vendored
0
vendor/github.com/google/uuid/dce.go → server/vendor/github.com/google/uuid/dce.go
generated
vendored
0
vendor/github.com/google/uuid/doc.go → server/vendor/github.com/google/uuid/doc.go
generated
vendored
0
vendor/github.com/google/uuid/doc.go → server/vendor/github.com/google/uuid/doc.go
generated
vendored
0
vendor/github.com/google/uuid/hash.go → server/vendor/github.com/google/uuid/hash.go
generated
vendored
0
vendor/github.com/google/uuid/hash.go → server/vendor/github.com/google/uuid/hash.go
generated
vendored
0
vendor/github.com/google/uuid/node.go → server/vendor/github.com/google/uuid/node.go
generated
vendored
0
vendor/github.com/google/uuid/node.go → server/vendor/github.com/google/uuid/node.go
generated
vendored
0
vendor/github.com/google/uuid/null.go → server/vendor/github.com/google/uuid/null.go
generated
vendored
0
vendor/github.com/google/uuid/null.go → server/vendor/github.com/google/uuid/null.go
generated
vendored
0
vendor/github.com/google/uuid/sql.go → server/vendor/github.com/google/uuid/sql.go
generated
vendored
0
vendor/github.com/google/uuid/sql.go → server/vendor/github.com/google/uuid/sql.go
generated
vendored
0
vendor/github.com/google/uuid/time.go → server/vendor/github.com/google/uuid/time.go
generated
vendored
0
vendor/github.com/google/uuid/time.go → server/vendor/github.com/google/uuid/time.go
generated
vendored
0
vendor/github.com/google/uuid/util.go → server/vendor/github.com/google/uuid/util.go
generated
vendored
0
vendor/github.com/google/uuid/util.go → server/vendor/github.com/google/uuid/util.go
generated
vendored
0
vendor/github.com/google/uuid/uuid.go → server/vendor/github.com/google/uuid/uuid.go
generated
vendored
0
vendor/github.com/google/uuid/uuid.go → server/vendor/github.com/google/uuid/uuid.go
generated
vendored
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue