YousefZinsazK78 / simpletest_postgresdbconnect

just to test connect to postgres database and using golang migrate package ....

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple web app in golang to connect postgresql database

purpose:

> connect to postgresql database
> work with migration / golang-migrate
> improve our project structure

how to run and build project

first export your postgresql_url to env export POSTGRESQL_URL='postgres://postgres:yourpassword@localhost:5432/example?sslmode=disable' then run migration file

    migrate -database ${POSTGRESQL_URL} -path db/migration up
    make run

About

just to test connect to postgres database and using golang migrate package ....


Languages

Language:Go 82.4%Language:HTML 6.7%Language:PLpgSQL 5.5%Language:Dockerfile 3.6%Language:Makefile 1.8%