Closed
Description
Requirements
-
Create docker-compose file which would run all dependencies for
taas-apis
using one command. It should include:- PostgreSQL database
- ElasticSearch
- Kafka with all required topics created
- tc-bus-api
- taas-es-processor
Notes:
- We can see how it's done in Projects API for reference https://github.com/topcoder-platform/tc-project-service. Also, taas-es-processor has a nice docker-compose file which could be used a starting point. It initiates Kafka events in a better way than Projects API.
- The important thing of such docker-compose should be that we could stop any of the services inside
docker-compose
and run it outside. It should work.
-
Create a script for pupulating demo data in DB and ES.
- This should also include creating script to index data from DB to ES, which would be also very helpful during updates to the data model. So we could change the scheme of DB and just reindex all the data, rather than trying to run update queries in ES (which are not well supported by AWS ES).
-
Update README with clear guide for local deployment. It shouldn't contain unnecessary steps/info, and cover all possible issues with local setup. See tc-project-service setup guide as an example.
References
tc-project-service is a good example where we improved the local setup process.
For references, here are the tasks we did in Projects API for this:
- https://www.topcoder.com/challenges/60a95086-8339-4d9b-8a5c-26528de44601
- https://www.topcoder.com/challenges/55ad9181-dd03-4879-abbf-27a173a32603
- https://www.topcoder.com/challenges/966e01d5-38c5-435a-9805-e600587001f9
- https://www.topcoder.com/challenges/2bb9794e-e743-4680-8d82-0f0cfc7d89b6
- https://www.topcoder.com/challenges/1e7861e2-338e-4db8-8df3-6bc6df56b4aa
- https://www.topcoder.com/challenges/4fe4e6cd-d76c-4e16-944e-cabbc2d5b662