Skip to content

alisyahbana/efishery-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-management

deploy

  1. create file log at "/var/log/efishery-test/efishery-test.log"
sudo mkdir /var/log/efishery-test && sudo chmod -R 777 /var/log/efishery-test
  1. run file with command
// auth app
go run cmd/app/efishery-test/auth.go
// fetch app
go run cmd/app/efishery-test/fetch.go
  1. Run mysql migration from sql/init.sql

  2. visit url http://localhost:8081 (auth app) & http://localhost:8082 (fetch app)

  3. auth app:

    1. register
      {
          "username" : "bana1234",
          "phone" : "0811111111"
          "role" : "admin"
      }
    2. login:
      {
          "phone" : "0811111111",
          "password" : "XVlB"
      }
    3. auth token - claim data:
      {
          "Authorization" : "Bearer {token}"
      }
  4. fetch app:

    1. fetch product
      {
          "Authorization" : "Bearer {token}"
      }
    2. fetch product compiled
      {
          "Authorization" : "Bearer {token}"
      }
    3. auth token - claim data:
      {
          "Authorization" : "Bearer {token}"
      }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages