Skip to content

developer-guy/assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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