GitHub - Darwin939/macmeharder-go · GitHub
Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is backend of the Macmeharder.com. All code have written in golang. PostgresSQL used as the database

How to setup

regenerate graphql schema

go run github.com/99designs/gqlgen generate

migrate db

migrate -database postgresql://postgres:postgres@/postgres?sslmode=disable -path internal/pkg/db/migrations/postgres up

or Force to specific migration version

migrate -database postgresql://postgres:postgres@/postgres?sslmode=disable -path internal/pkg/db/migrations/postgres force 1

Create new migration

migrate create -ext sql -dir postgres -seq create_avatar_table

GraphQL mutations and queries

Upload Avatar

mutation($file:Upload!) { uploadAppAvatar(file:$file){ url } }

HOW *red* TO RUN

The first step is Running docker container with postgreSQL image with command below:

docker compose up

run server with command in root directory:

go run server.go

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages