In the previous chapter, we developed the bulk of our Create User feature by following a TDD process and writing all our E2E test cases first. The last piece of the puzzle is to actually persist the user data into a database.
In this chapter, we will install and run ElasticSearch on our local development machine, and use it as our database. Then, we will implement our last remaining step definition, using it to drive the development of our application code. Specifically, we will cover the following:
- Installing Java and Elasticsearch
- Understanding Elasticsearch concepts, such as indices, types, and documents
- Using the Elasticsearch JavaScript client to complete our create user endpoint
- Writing a Bash script to run our E2E tests with a single command