Please read: Of course, I have not implemented all the functions such as paging, ... but in the source code you can find place holders for this purpose. This is just a demo project designed to interview only.
- This project use Rocket Framework for api design, http requests like json request,...
- i've created a very basic file cache system for caching
- I use GNews api for backend
- Install rust via
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Get an api key from GNEWS developer portal.
API_KEY="blablabla" cargo run
API_KEY="blablabla" cargo run --release
Restfull api endpoints for local development machine:
$ curl "http://127.0.0.1:8000/searchByTitle/Best%20Programmer"
$ curl "http://127.0.0.1:8000/searchByDescription/Best%20Programmer"
$ curl "http://127.0.0.1:8000/searchByContent/Best%20Programmer"
Ofcouse, I didnt implement all functions like paging, ... but in source code you can find place holders for this purpose.
This is only demo.
- add an dotenv file for configuration
- add comments for functions
- implement all functions
- create an uml or flowchart for presentation