Skip to content

dzhdmitry/greenlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requrements

  • go 1.16 or higer

  • migrate. install:

    $ curl -L https://github.com/golang-migrate/migrate/releases/download/v4.14.1/migrate.linux-amd64.tar.gz | tar xvz
    $ mv migrate.linux-amd64 $GOPATH/bin/migrate
  • Postgresql database setup

    CREATE DATABASE greenlight;
    CREATE ROLE greenlight WITH LOGIN PASSWORD 'pa55word';
    CREATE EXTENSION IF NOT EXISTS citext;
  • Migrate

    migrate -path=./migrations -database=postgres://greenlight:pa55word@localhost/greenlight?sslmode=disable up

Run

go run ./cmd/api

About

Go project for book "Let's Go Further"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published