This application works with the restcountries.com search APIs to return countries based on a few different criteria: Name, Full Name, and Country Code. It has a PHP backend and a React frontend.
- Clone this repo to your local machine.
- Navigate to a terminal within the project.
- Enter
npm install
to get the node libraries downloaded and installed. - Run
./server
in one terminal to get the PHP server running. - From a different terminal, run
npm start
to get the client going.
- This is a pretty good pass at the prompt, but could be improved with more time.
- This is the first time I've ever coded in PHP. I didn't have time for a lot of formal training, but I think I handled the basics. If you have feedback/advice for how I could make it better/follow better standards I am all ears.
- I'll take feedback on any of the project, really. I had a lot of fun getting this to work.
- I'd forgotten how difficult CORS errors can be. Some people made this wonderful resource: Solve CORS Errors
- I have regions and sub-regions return as "???" if they aren't specified from the API. While I was testing, there were islands that didn't have sub-regions specified that were causing the app to crash.
- Thank you for the opportunity to apply to Infosec.