(In Native Currency - USD Conversion Rate Included) Look at Countries.js to view the list of countries
node-fetch
to fetch the data from the websitecheerio
to parse the data from the websiteexpress
web framework for node.jsmongoose
to connect to the databasemongodb
mongodb database driver for node.jsdate-fns-tz
to get the current date and time in a specific timezonedotenv
to load environment variables from a .env file
- Clone the repository
- Run
npm install
to install the dependencies - Run
npm start
to start the server - Open
localhost:3003
in 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