Skip to content

bibi-ic/recruiter-service

Repository files navigation

CircleCI

Go-JWT-Postgres-Mysql-Restful-API

This is a application build with golang, jwt, gorm, postgresql, mysql

How To Use

  • Running in local:

    • In a root Wordir (have main.go)
    go run main.go
  • Build with Docker-Compose:

      1. Have Docker, Docker-Compose installed:
      1. If you have PostgreSQL installed on your local machine:
      • Stop the PostgreSQL service:
        • Linux

          systemctl stop postgresql
          
        • Windows

          • First, you need to find the PostgreSQL database directory, it can be something like "C:\Program Files\PostgreSQL\10.4\data" . Then open Command Prompt and execute this command:
          pg_ctl -D "C:\Program Files\PostgreSQL\10.4\data" stop
        • MacOS

          • If you installed PostgreSQL via Homebrew:
          pg_ctl -D /usr/local/var/postgres stop
          
      1. Buid it Or Update, Run:
        • sudo bash ./deploy.sh
          

Note: At Default:

  • we use port 8080 for api
  • we use port 5432 for database

About

Old Fork Repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages