(In Native Currency - USD Conversion Rate Included) Look at Countries.js to view the list of countries
node-fetchto fetch the data from the websitecheerioto parse the data from the websiteexpressweb framework for node.jsmongooseto connect to the databasemongodbmongodb database driver for node.jsdate-fns-tzto get the current date and time in a specific timezonedotenvto load environment variables from a .env file
- Clone the repository
- Run
npm installto install the dependencies - Run
npm startto start the server - Open
localhost:3003in your browser
- The server fetches the data from the website
- The data is parsed using cheerio
- The data is sent to the client with the help of express
- The repository is not accepting any contributions at the moment
/- Home page/ping- Check if the server is running/api/countries/all- Get all the countries/api/countries/code/:country- Get the price for a specific country with the country code/api/update/all- Refetch and update the data for all the countries/api/update/code/:country- Refetch and update the data for a specific country with the country code