If you want to contribute to traQ, then follow this section.
- Go 1.19
- git
- bash
- make
- Docker
- docker-compose
make update-frontend && make up
Now you can access to
http://localhost:3000
for traQ- admin user id:
traq
- admin user password:
traq
- admin user id:
http://localhost:3001
for Adminerhttp://localhost:6060
for traQ pprof web interface3002/tcp
for traQ MariaDB- username:
root
- password:
password
- database:
traq
- username:
make up
make update-frontend
or make reset-frontend
make down
make down
- Remove respective directory in
./dev/data
(e.g. to remove allrm -r ./dev/data/*
) make up
make traQ
make init
github.com/google/wire/cmd/wire
andgithub.com/golang/mock/mockgen
will be installed.
make gogen
- Setup test DB container by
make up-test-db
make test
- (Remove test DB container by
make rm-test-db
)
make lint
(or individually make golangci-lint
, make swagger-lint
)
Powered by:
- golangci-lint for go codes (pre-installation required)
- spectral for swagger specs
If your changelist alters the database schema, you should regenerate db docs.
- Write new schema descriptions in
.tbls.yml
. - Make sure the Test DB Container is running (run
make up-test-db
). make db-gen-docs
Powered by:
- tbls for generating schema docs