Git Product home page Git Product logo

stockbit's Introduction

stockbit

Answer of stockbit coding test

Answer For Question No 1 (simple database query)

Answer for this question can is

SELECT u.id, u.user_name, p.user_name AS parent_user_name
FROM users u
LEFT JOIN users p NO p.id = u.parent

or you can access on this file

Answer For Question No 2 (write a microservice for search movies)

This answer can access on second_answer folder. this project contain 2 services, client and server. steps to run this project is :

Server

  1. after clone stockbit repo, change your directory to second_answer/movie/server.
  2. build this project using command go build
  3. after success build binary for this project run binary ./server(for unix)

Client

  1. after clone stockbit repo, change your directory to second_answer/movie/client.
  2. build this project using command go build
  3. after success build binary for this project run binary ./client(for unix). make sure server running
  4. this client have 2 endpoints, /v1/movies and /v1/movie/{movie_id}.
  5. endpoint /v1/movies need 2 parameters, s for search word and page for page.
  6. this sample for full endpoint http://localhost:8080/v1/movies?s=batman&page=1
  7. for movie detail endpoint you can get id from movies endpoint.
  8. this sample for full endpoint http://localhost:8080/v1/movie/tt0372784

Answer For Question No 3 (refactor code)

this answer can access on third_answer folder.

to run this project, change directory to third_answer. build this project with command go build. run binary ./third_answer (for unix).

Answer For Question No 4 (anagram string)

this answer can access on fourth_answer folder.

to run this project, change directory to fourth_answer. build this project with command go build. run binary ./fourth_answer (for unix).

stockbit's People

Contributors

muhammadaser avatar

Watchers

 avatar

Forkers

devwaru

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.