Welcome to the Pulley Shakesearch Challenge! This repository contains a simple web app for searching text in the complete works of Shakespeare.
To run the tests, you need to have Go and Docker installed on your system.
Your task is to fix the underlying code to make the failing tests in the app pass. There are 3 frontend tests and 3 backend tests, with 2 of each currently failing. You should not modify the tests themselves, but rather improve the code to meet the test requirements. You can use the provided Dockerfile to run the tests or the app locally. The success criteria are to have all 6 tests passing.
![image](https://private-user-images.githubusercontent.com/98766735/261694888-9a5b96b5-0e44-42e1-8d6e-b7a9e08df9a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyOTIwNzgsIm5iZiI6MTcyNDI5MTc3OCwicGF0aCI6Ii85ODc2NjczNS8yNjE2OTQ4ODgtOWE1Yjk2YjUtMGU0NC00MmUxLThkNmUtYjdhOWUwOGRmOWExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDAxNTYxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxODJjN2VkOWNhMmUwNGIyMjJjYzljNzdmYTE3MDA5Y2UwN2I5MDI5MTdiYTlhYTRhNGYyYWNmMjVhZjM2NmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yPMWYfJz2eW8hft5Kkx-UzTfDfi7J00GHx20uMA-FX0)
Do not open a pull request or fork the repo. Use these steps to create a hard copy.
- Create a repository from this one using the "Use this template" button.
- Fix the underlying code to make the tests pass
- Include a short explanation of your changes in the readme or changelog file
- Email us back with a link to your copy of the repo
This command runs the app on your machine and will be available in browser at localhost:3001.
make run
This command runs backend and frontend tests.
Backend testing directly runs all Go tests.
Frontend testing run the app and mochajs tests inside docker, using internal port 3002.
make test
Good luck!