To get started with the project, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/andrecastrosousa/quotesChallenge
- Navigate to the project directory:
cd quotesChallenge
- Start the MongoDB, ensuring that are up. using the following command:
docker-compose up -d
- Run script to import data to MongoDB.
You can find data in /mongo-seed/quotes.json as 50.000 quotes from following URL: https://pprathameshmore.github.io/QuoteGarden/#get-quotescd mongo-seed && sh import-data.sh
- Run the application:
./gradlew run
- Test the application:
./gradlew test
Results of 3 stress test using 50 requests per second for api/quotes/5eb17aaeb69dc744b4e7262f
, tool used JMeter:
Result of 1 stress test using 50 request per second for api/quotes/search?author=Bill%20Gates
, tool used JMeter