Product store. Task description is here
Download:
git clone https://github.com/p12s/product-store.git && cd product-store
mv server/.env.example server/.env
mv client/.env.example client/.env
docker-compose up --build
Stop:
docker-compose down
What does the client do:
- sending address to download products (for example, http://164.92.251.245:8080/api/v1/products/)
- requesting products with pagination functionality (limit, skip)
- requesting products continuously, simulate endless loading (based on bidirectional-stream)
What does the server do:
- going to the url, download and save the csv-file, extract the products from it, save to your database
- giving products with pagination functionality (limit, skip)
- giving away products in stream
Services are raised in docker-compose, the client starts and executes requests with output to the console, and then exits.
The server continues to work
Example external csv-product store source (if still works)
swagger-doc
products
If first resource isn't work - check this example:
swagger-doc