This project builds todo apis using Vert.x with the following specifications of Todo-backend.
Project is merged in Todo-backend Site!! Please checkout Todo-vertx from Vithulan.
- First install Mongo db
- Start Mongo db service
- Make sure Mongodb service is running in port 27017
- Clone the project : master branch
- Run
mvn clean package
- Direct your terminal to
/todo-vertx/target
- Run
java -jar todo.vertx-1.0-SNAPSHOT-fat.jar
Now your server will be started in http://localhost:8080
##Deploying the application in Heroku
- Clone the heroku-app branch
- Open the terminal
- heroku create (Assumption : Heroku environment is alreay been set)
- git push heroku master
Please check out https://todo-vertx.herokuapp.com/api/tasks
##Calling APIs
- Open a Rest client in your browser
- Send a
POST
request tohttp://localhost:8080/api/tasks
with the following JSON context
{
"task":"Doing GSoC 2016",
"completed":"true"
}
- View the sent request in
http://localhost:8080/api/tasks
in your browser. - Like vice you can Add tasks, Delete tasks, Modify Tasks and View tasks.
##Available APIS
GET
http://localhost:8080/api/tasks
: Get all the Tasks stored in DBPOST
http://localhost:8080/api/tasks
: Add a new taskPUT
http://localhost:8080/api/tasks/:id
: Update a task whether it is done or notDELETE
http://localhost:8080/api/tasks/:id
: Delete a task
##Simple Architecture of todo-vertx
##Contact The best way for potential contributors to contact is posting a message in my issue tracker
Feel free to contribute for any bugs or for improvemet of a new feature
-Vithulan MV