Skip to content

caelum/mamute

Repository files navigation

PagPag
--------------------------------------------------------------------------------

Como colocar para rodar na sua maquina:
1- git clone no projeto.

2- mvn eclipse:eclipse no terminal

3-sh src/environment/build/create_database.sh

4- Subir o Servidor: Rode a classe Main que fica no (default package)

Para criar um carrinho:

Acesse http://localhost:8080/teste/pagamento/

Como testar:

# unit tests
mvn test

# integration tests, local
mvn integration-test

# integration tests, remote
mvn -P remote-acceptance integration-test

# jenkins
xvfb-run -a mvn -P remote-acceptance integration-test

# deploy pra acceptance
git remote add heroku-acceptance git@heroku.com:caelum-pagpag-acceptance.git
git push heroku-acceptance master

# criar uma maquina de acceptance

ruby src/environment/build/create_machine.rb caelum-pagpag-acceptance acceptance
open http://caelum-pagpag-acceptance.herokuapp.com/teste/pagamento/

# criar uma maquina para production 

ruby src/environment/build/create_machine.rb caelum-pagpag production
open http://online.caelum.com.br/enroll/FJ-23/payment