Giter Site home page Giter Site logo

golang-addtocart's Introduction

Golang-AddToCart

Golang-Project-backend

This project was developed by Rajesh Kannan.

Requirements:-

Candidate Take Home Test Have you shopped online? Let’s imagine that you need to build the checkout backend service that will support different promotions with the given inventory. Build a checkout system with these items: SKU Name Price Inventory Qty 120P90 Google Home $49.99 10 43N23P MacBook Pro $5,399.99 5 A304SD Alexa Speaker $109.50 10 234234 Raspberry Pi B $30.00 2 The system should have the following promotions: Each sale of a MacBook Pro comes with a free Raspberry Pi B Buy 3 Google Homes for the price of 2

Buying more than 3 Alexa Speakers will have a 10% discount on all Alexa speakers Example Scenarios: Scanned Items: MacBook Pro, Raspberry Pi B Total: $5,399.99 Scanned Items: Google Home, Google Home, Google Home Total: $99.98 Scanned Items: Alexa Speaker, Alexa Speaker, Alexa Speaker Total: $295.65

  • How to run project download source code or clone it in your computer then go to the root path of the project. then run

go get -u ./...

for get all the dependency used in this project. then make a database in Postgres and add your database config into /config/config.go and go to the root project directory and run

go run main.go

golang-addtocart's People

Contributors

raajeshv 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.