Categorygithub.com/suryaadi44/Techdo-blog
module
0.0.0-20220614165729-ebc700000b0a
Repository: https://github.com/suryaadi44/techdo-blog.git
Documentation: pkg.go.dev

# README

TechDo-Blog

How to run?

  1. Install Golang in your machine

  2. Install Golang-Migrate for preparing database

    Repository can be found here.

  3. Run migrate

    Migration can be executed with this command:

    migrate -source file://./db/migrations -database "mysql://root:root@tcp(localhost:3307)/techdo_db" up 
    

    Note:

    • root:root is your username:password for database.
    • localhost:3307 is your database address.
    • techdo_db is your database name. Need to be created first!
  4. Change .env file value according to your own value. Variable description:

    VariableDescription
    APP_NAMECurrent app name, not affecting front end, only used for logging
    PORTPort which server will listen to, eg: 80
    DB_ADDRESSDBMS address, eg: localhost:3307 / :3307
    DB_USERNAMEDatabase username that have acces to CRUD operation in table
    DB_PASSWORDDatabase password for username
    DB_NAMEDatabase name where table is stored
    IMGKIT_PRIVKEYPrivate key for IMGKIT account
    IMGKIT_PUBKEYPublic key for IMGKIT account
  5. Run app App can be started with this command:

    go run cmd/main/main.go 
    

# Packages

No description provided by the author
No description provided by the author