athleticsbackend

package module
v0.0.0-...-43927cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 17 Imported by: 0

README

Athletics backend

Backend application for athletics app, written in Golang

Setup

  1. download dependencies go mod download
  2. install docker and docker compose
  3. create
    • .env file from .env.sample
    • .env.test file from .env.test.sample

Development

  1. run postgres database
    docker compose up db
  2. run the app (call in project root directory)
    go run ./cmd

Alternatively, run the app with the database in docker (this simulates production deployment):
docker compose up

Testing

go test ./...

App structure

Because appplication is written in golang, the easiest way to explore the app is to start from ./cmd/main.go file and follow along to check how things work

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, envPath string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL