shore-app-demo
This is a test project. To know more about the project and its details please follow this wiki page
Configuration
By default it will have the DefaultConfig and for test runner it will use TestConfig
- For Email Setup,
username
andpassword
is required. You can use your gmail credentials but you need to change your Gmail security settings - If you want to test the app without using the Email notification, set
SENT_EMAIL=False
- We used
Celery
for task runner with multiple queue. To change the schedule time, here is the options - Ebay APP Id is required
- Use this one
SayedKab-shoreapp-SBX-21d98cfe6-67df03b3
for test purpose. - Please note, its difficult to get data from Ebay sandbox, I use these phrases to get data
Computer
,Toy
,Harry Potter
,Adventure
,USA
Docker-Configuration
- To run the project from docker, run command -
docker-compose up --build
for the first time - For later use only -
docker-compose up
- For details check docker-compose and DockerFile
Test Runner
- To check tests -
docker exec -it shore-app pytest
Run Project
docker-compose up --build
ordocker-compose up
Single Page WebApp
http://127.0.0.1:5000/
API
- Use postman or any other client to test the API
- Resources -
/api/users
[GET, POST]/api/user/:id
[EDIT, PUT, DELETE]/api/subscriptions
[GET, POST]/api/subscription/:id
[GET, PUT, DELETE]
Debug
- Turn on debug mode, set
DEBUG=True
- docker logs -
docker logs -f [container-name]
- Log file in
/var/log/shore_app
directory, using LogRotation.
App View
- Home Page