Country Details is an app where you can search for different countries and see information regarding them.
Client and Server are deployed using heroku
Deployed Server Side URL
Clone the code from GitHub and unzip it. Folder named frontend holds the React.js Client code while the folder backend holds the Node.js Server code.
In order to run this project you need:
- Node.js
- npm
Server Side:
cd frontend
npm install
Client Side:
cd backend
npm install
Create a .env.local file and add the value for REACT_APP_API_URL as the url of the localhost with port server is run on. eg: http://localhost:3001
Server Side:
npm start
Client Side:
npm start
We use Jest for unit testing on the Server side and Cypress for e2e testing on the Client side. To run tests, run the following command:
Server Side:
npm test
Client Side:
npx cypress run
