Skip to content

kopjenmbeng/sotock_bit_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

task number 1

  • please execute this MySql script for create table user Please click for view the result
  • please execute this MySql script for insert data table user Please click for view the result
  • please execute this query for get result Please click for view the result

task number 2

  • this task is create microservice from http://www.omdbapi.com/

    Technology Stack

  • GO

  • mysql

  • Consul for store configuration (Optional)

  • Postman for API Documentation

    Before To RUN

    • please restore this database log klik untuk download

    • makesure .env file is exist and the configuration is like this.

      predefined goconf env vars

      • GOCONF_ENV_PREFIX=stockbit
      • #GOCONF_CONSUL=localhost:8500 (please remark using # if you don't have consul so it will read this json config)
      • GOCONF_TYPE=json
      • GOCONF_FILENAME=stockbit.config

      Newrelic

      • #PROPERTY_NEWRELIC_KEY=

    After you full fill the requeirment above this is rule for run application locally.

    run grpc server

    • go run main.go grpc
    • the service wil run at port 8090

    run api server

    • go run main.go api
    • the grpc server wil run at port 8080

    run unit test

    • go test -v .\test\

    api documentation

    • for Api documentation please import api doc)

task number 3

  • this task is refactore code from funtion findFirstStringInBracket please execute command go run .\logic_task\findstring\ or you can find at logic_task/findstring for find the code

task number 4

  • this task is grouping anagram please execute command go run .\logic_task\anagram\ or you can find at logic_task/anagram for find the code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published