Coder Social home page Coder Social logo

fridge's Introduction

Fridge

RESTful API microservice for tracking/updating the fridge contents

To run from IDE:
Fridge/src/main/java/com/smartthings/project/Fridge/FridgeApplication.java -> main -> Run as Java Application
Or run
mvn package
java -jar Fridge*.jar

Then go to localhost:8080

Available users:

Admin: (Access to view metrics)
Username: a
Password: a

User:
Username: u
Password: u

As a logged in user, there are two fridges available. In each fridge, users can add, delete, or update items. When updating an item, users may change the amount or name.

The soda constraint was taken to mean that there can be no more than a total of 12 cans of soda between both fridges, though it was not entirely clear if that was the intent of the given requirement. It was also not specified what the behavior should be if the user attempts to add more soda than is allowed. In the current implementation, if the user attempts to add more soda than is allowed, the fridge will add the maximum number of soda cans that it can while meeting the constraint. I.e., if there are 10 cans of soda between the two fridges, and a user attempts to add 5 cans of soda, then only 2 cans of soda will be added.

Some potential future enhancements:
-Update the UI to look nice
-Update logging to send performance logs to their own file
-logic to autocorrect/ask user if an added item that has a “similar” name to an existing item was meant to be the same as the existing item

fridge's People

Contributors

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