- 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
- Do
mvn clean install -DskipITs=false -DskipDbMigration=true -Dspring.profiles.active="IT"
- 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.
- 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
- E.g.
- In order to run the app in localhost, you have to have a Postgres instance running at localhost and call
./start_dev.sh
.
- 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.
- E.g.
cd application
- E.g.
mvn flyway:migrate -DENVIRONMENT=dev
- Note: connect to pgadmin (http://stackoverflow.com/questions/11769860/connect-to-a-heroku-database-with-pgadmin)
- E.g.
- 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
- Logs :
Commercial("4111111111131010"), Debit("4117101010101010"), DurbinRegulated("4111161010101010"), Healthcare("4111111510101010"), Payroll("4111111114101010"), Prepaid("4111111111111210"), IssuingBank("4111111141010101"), CountryOfIssuance("4111111111121102"), No("4111111111310101"), Unknown("4111111111112101");
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)