- please execute this MySql script for create table user
- please execute this MySql script for insert data table user
- please execute this query for get result
-
this task is create microservice from http://www.omdbapi.com/
-
GO
-
mysql
-
Consul for store configuration (Optional)
-
Postman for API Documentation
-
makesure .env file is exist and the configuration is like this.
- GOCONF_ENV_PREFIX=stockbit
- #GOCONF_CONSUL=localhost:8500 (please remark using # if you don't have consul so it will read
)
- GOCONF_TYPE=json
- GOCONF_FILENAME=stockbit.config
- #PROPERTY_NEWRELIC_KEY=
After you full fill the requeirment above this is rule for run application locally.
- go run main.go grpc
- the service wil run at port 8090
- go run main.go api
- the grpc server wil run at port 8080
- go test -v .\test\
- 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
- 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