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
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 ./...

View file

@ -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

View file

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

View file

@ -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
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

View file

@ -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 {

View file

@ -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"

View file

@ -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"}

View file

@ -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"
)

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