项目作者: jack-slater

项目描述 :
Simple api to build and create an api using golang
高级语言: Go
项目地址: git://github.com/jack-slater/products-api.git
创建时间: 2018-08-28T15:54:09Z
项目社区:https://github.com/jack-slater/products-api

开源协议:

下载


products-api

Simple api to build and create an api using golang and a psql database. Built using this tutorial

Setup

To run the product you will need set up and download postgres

https://www.postgresql.org/

Once postgres in installed set up a user and database and add them to .env file in the pattern

.env file

  1. TEST_DB_USERNAME="testUserName"
  2. TEST_DB_PASSWORD="testPassword"
  3. TEST_DB_NAME="testDatabaseName"
  4. APP_DB_USERNAME="appUserName"
  5. APP_DB_PASSWORD="appPassword"
  6. APP_DB_NAME="appDatabaseName"

Test

Run the below command in the terminal in the project directory

  1. go test -v