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
|
.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 ./...
|
||||||
|
|
|
@ -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
|
||||||
|
|
3
rmsn.yml
3
rmsn.yml
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
database_path: rmsn.sqlite
|
|
||||||
port: 8080
|
|
|
@ -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
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
|
go 1.17
|
||||||
|
|
|
@ -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 {
|
|
@ -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"
|
|
@ -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"}
|
|
@ -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"
|
||||||
)
|
)
|
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