Skip to content

f-code-club/rode-battle-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R.ODE Battle API

Tools

  • Go: Version 1.26.2 or later.
  • PostgreSQL.
  • migrate: Used for managing migrations.
    go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
  • sqlc: Used for generating type-safe Go code from SQL.
    go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
  • Air: A live-reloading tool for Go applications.
    go install github.com/cosmtrek/air@latest

Getting Started

Clone the repository

git clone https://github.com/f-code-club/rode-battle-api.git
cd rode-battle-api

Setup Environment Variables

DATABASE_URL="postgres://user:password@localhost:5432/rode?sslmode=disable"

Setup Database

createdb rode
migrate -database $DATABASE_URL -path migration up

Run the Application

air

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors