Giter Site home page Giter Site logo

recipe-for-lunch's Introduction

Recipe for lunch

An API that provides recipes bases on available ingredients. The application has been developed using Java 11, Maven 4, springboot 2.2.4

Quick start

I. To build the application using Maven, use the below command:

$ mvn clean package

II. Run the application

$ mvn spring-boot:run

III. To fetch the outcome use the following command:

$ curl -X GET http://localhost:8080/lunch

Build and run using docker

Install the docker if you haven't already, https://docs.docker.com/install/

I. Build the docker image as below:

$ docker build -t recipe:latest .

II. Run the application using docker image

$ docker run -p 8080:8080 -t recipe:latest

III. To fetch the outcome use the following command:

$ curl -X GET http://localhost:8080/lunch

IV.To stop the docker image use the below command

$ docker rm $(docker stop $(docker ps -a -q --filter ancestor=recipe:latest --format="{{.ID}}"))

recipe-for-lunch's People

Watchers

James Cloos avatar Ima Vafaei 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.