Code Monkey home page Code Monkey logo

assignment's Introduction

alt text alt text

Assignment

Getting Started

Firstly , you must run maven command inside each project :

mvn package docker:build 

Running

To run docker image which was built by maven command :

docker run -e MONGO_DB='assignment' \ 
-e EUREKA_HOST='172.17.0.2' \
-e MONGO_USER='bapaydin67' \
-e MONGO_PASSWORD='12345678' \
-e MONGO_HOST='ds113046.mlab.com' \
-e MONGO_DB_PORT='13046' \
-p 80:80 \
--link eureka-container \  
--name todo-container todo-app

docker run -p 8761:8761  --name eureka-container eureka-server 

Some curl commands :

9909  curl -X POST -H "Content-Type: application/json" -d '{"number":1}' http://localhost:8080/resource/save
9910  curl -X GET http://localhost:8080/resource/find/1
9917  curl -X DELETE http://localhost:8080/resource/delete/0
9929  curl -X GET http://localhost:8080/resource/max
9930  curl -X GET http://localhost:8080/resource/min
9933  curl -X GET http://localhost:8080/resource\?type\=ASC | json_pp
9935  curl -X GET http://localhost:8080/resource\?type\=DESC | json_pp

Built With

Maven

Authors

  • Batuhan Apaydın - Initial work - SAHABT

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • etc

assignment's People

Contributors

bapaydin67 avatar

Watchers

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