Skip to content

traPtitech/traPortfolio

Repository files navigation

traPortfolio

GitHub release CI Build image codecov swagger

Develop environment

If you want to contribute to traPortfolio, then follow these pages.

Quick start with DevContainer (Recommended)

If you use VSCode, you can use DevContainer to develop traPortfolio. See ./.devcontainer/README.md for more details.

Requirements (for local development)

  • Bash
  • make
  • Docker
  • Docker Compose
  • Go
  • MySQL

Start docker container (with Docker Compose)

docker compose up

Tips: You can change the configuration by rewriting ./dev/config.yaml

Now you can access to

Run locally

NOTE: Make sure backend container is stopped because of port conflicts

make up-db-container
go run main.go -c ./dev/config.yaml

Tips: You can change the configuration by

Generate DB docs

make db-gen-docs

Run linters

DB linter (tbls)

make db-lint

OpenAPI linter (spectral)

make openapi-lint

Go linter (golangci-lint)

make lint

Run tests

Unit tests

make test

Integration tests

make test-integration

If you want to test both of them, run the following command.

make test-all

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages