git clone [link for this repo]
Clone loyalty web app repo first with readme file instructions,and make sure that its container is running
Go to the project directory
cd s3-payment-tracker
Build the Docker image
docker build -t [image name]:[tag name] . or just docker build .
Build the Docker image using docker-compose
docker-compose build
docker-compose up
docker images
docker ps -a and docker ps
At this point, your price-tracker app should be running at port 4000 on your Docker host. On Docker Desktop for Mac and Docker Desktop for Windows, go to http://localhost:4000 on a web browser to see the website. If you are using Docker Machine, then docker-machine ip MACHINE_VM returns the Docker host IP address, to which you can append the port (
login with username = "test1234" and password= "test@1234"
Django administration page will be appear,click on "view site "
don't delete db.sqlite3
first go your loyalty web app repo-->app-->payment_tracker_app-->views.py---->callapi() method
now change BASE_URL attribute inside callapi() to your loyalty web URL e.g "http://localhost:9000/"
remove this 2 lines
BASE_URL='http://127.0.0.1:8000/'
save file
make sure you have that .env file where settings.py resides in loyalty app,make sure that you have "recipient"= "your email id" to get emails
now run both loyalty and tracker containers
first go to loyalty website and go to admin panel ,just look at how many Users you have their in loyalty app database
also look at Guest,Profile,Reservation database,bcoz after sync new entries would be there.
go to payment-tracker website homepage
click on sync botton to sync reservation into loyalty app
resrvation will be shown into "already sync" section after successful sync
check your Users,Profile,Gust,Reservation database again ,new entries would have been created
check your email ,email will have email id and password for login that is created automatically