Skip to content

My beloved revaluate app (API)

Notifications You must be signed in to change notification settings

ioanlucut/revaluate-api

Repository files navigation

Codeship Status for sorinpantis/revaluate-api

Maven

  • UT tests are automatically started using mvn clean install
  • IT tests are automatically disabled. Can be enabled using mvn clean install -DskipITs=false or mvn clean install -PexecITs

Default command to be used before commits:

  • Do mvn clean install -DskipITs=false -DskipDbMigration=true -Dspring.profiles.active="IT"

IT tests:

  • For IT tests we use an embedded H2 database, so therefore we need a different configuration.
  • Do mvn clean install -DskipITs=false -Dspring.profiles.active="IT" in order to activate the IT spring profile.

Flyway.

  • Migrations are done automatically on deploy app (run) using Flyway API.
  • However, for dev, there is a possibility to run flyway commands through maven.
    • E.g. cd application
    • E.g. mvn flyway:migrate -DENVIRONMENT=dev

Localhost.

  • In order to run the app in localhost, you have to have a Postgres instance running at localhost and call ./start_dev.sh.

Heroku.

  • There is a small Procfile where all the configrations are defined (how to start the app).
  • However, for dev, there is a possibility to run flyway commands through maven.
  • Useful heroku commands can be found at https://devcenter.heroku.com/articles/dynos.
    • Logs : heroku logs -t -n 300 --app revaluate-api-prod
    • Kill db connections : heroku pg:killall --app revaluate-api-prod

Useful.

Commercial("4111111111131010"), Debit("4117101010101010"), DurbinRegulated("4111161010101010"), Healthcare("4111111510101010"), Payroll("4111111114101010"), Prepaid("4111111111111210"), IssuingBank("4111111141010101"), CountryOfIssuance("4111111111121102"), No("4111111111310101"), Unknown("4111111111112101");

Existing endpoints:

    DELETE  /categories/remove/{categoryId} (com.revaluate.resource.category.CategoryResource)
    GET     /categories/isUniqueCategory (com.revaluate.resource.category.CategoryResource)
    GET     /categories/retrieve (com.revaluate.resource.category.CategoryResource)
    POST    /categories/create (com.revaluate.resource.category.CategoryResource)
    POST    /categories/update (com.revaluate.resource.category.CategoryResource)
    DELETE  /account/remove (com.revaluate.resource.account.UserResource)
    GET     /account/details (com.revaluate.resource.account.UserResource)
    GET     /account/isUniqueEmail (com.revaluate.resource.account.UserResource)
    POST    /account/create (com.revaluate.resource.account.UserResource)
    POST    /account/login (com.revaluate.resource.account.UserResource)
    POST    /account/requestConfirmationEmail/{email} (com.revaluate.resource.account.UserResource)
    POST    /account/requestResetPassword/{email} (com.revaluate.resource.account.UserResource)
    POST    /account/resetPassword/{email}/{token} (com.revaluate.resource.account.UserResource)
    POST    /account/update (com.revaluate.resource.account.UserResource)
    POST    /account/updatePassword (com.revaluate.resource.account.UserResource)
    POST    /account/validateConfirmationEmailToken/{email}/{token} (com.revaluate.resource.account.UserResource)
    POST    /account/validateResetPasswordToken/{email}/{token} (com.revaluate.resource.account.UserResource)
    DELETE  /expenses/remove/{expenseId} (com.revaluate.resource.expense.ExpenseResource)
    GET     /expenses/retrieve (com.revaluate.resource.expense.ExpenseResource)
    GET     /expenses/retrieve_from_to (com.revaluate.resource.expense.ExpenseResource)
    POST    /expenses/create (com.revaluate.resource.expense.ExpenseResource)
    POST    /expenses/update (com.revaluate.resource.expense.ExpenseResource) 

About

My beloved revaluate app (API)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages