Git Product home page Git Product logo

evermos-be-task's Introduction

EVERMOS Backend Task

This repository contains all code that is submitted as part of Evermos Backend Assessment.

01. Store API

Running Locally Requires:

  • Go 1.17+
  • MySQL
  • GORM
  • Gin Framework

This is the solution to **Question 1 of Evermos Backend Engineer Task

Running Locally

  1. Clone this repository.
  2. Go to task-store folder.
  3. Configure your database in line with .env file and run the migrations in migrations folder and run go run main.go migrate
  4. go run main.go

Problems

  1. Error caused by no validation in database to avoid inventory become negative
  2. No notification of error that prevent costomer to order product that currently has no inventory.
  3. Concurenncy, if there are multiple customer order at the same time, some of customer order might be not recorded in databases.

Solution

  1. Set validation minimum 0 stock in database.
  2. use many layer checking & transactional on order.
  3. Set sync in "order" function to make multiple order executed after another if coming at the same time..

This is the solution to **Question 2 of Evermos Backend Engineer Task

02. Treasure Hunt Puzzle

I did two function to generate probabilities of treasure and generate layout of treasure map. To run locally, simply go into task-treasure directory and run go run main.go. The list of coordinates and map layout will be generated.

evermos-be-task's People

Contributors

woka20 avatar

Watchers

 avatar

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.