Skip to content

Latest commit

 

History

History
218 lines (136 loc) · 7.68 KB

tools.md

File metadata and controls

218 lines (136 loc) · 7.68 KB

Websites to use during development

Design

Color palette generator

Images

To get png icons/Animated or Interface Icons Download Free Icons and Stickers for your projects. (MP4, gif, png)

For stock photos

Fonts

2D Illustrations

Recomended for small images and illustrations

For better quality illistrations,

From Sapiens you can export svg and modify colours.

You can change colurs from the svg file by changing the fill value.

  • Open SVG image in VS Code,
  • Search for fill value
  • change colour value where you need to update,
  • Open the SVG file and verify

3D Illustrations

UI Components

Code Generators

Logo design

Authentication

Deployment

Storing Media

Payment Gateways

  • Razorpay: https://razorpay.com/docs/#home-payments

    • Key Features: Supports a wide range of payment methods, including credit/debit cards, net banking, UPI, and wallets. Offers easy integration with a well-documented API.
  • Cashfree: https://docs.cashfree.com/

    • Key Features: Supports a range of payment options, including UPI, cards, and wallets. Offers easy integration and advanced features like instant settlements.
  • Paytm: https://business.paytm.com/docs

    • Key Features: Offers a popular digital wallet and payment gateway. Supports various payment methods, including Paytm Wallet, UPI, and cards.

React Chart Libraries

Firebase

Cron Job

  • A "cron job" is like a task scheduler for your computer or server. Imagine you have a to-do list of tasks you want your computer to do regularly, like sending you a daily weather report or cleaning up old files. Instead of doing these tasks manually every day, you can set up a cron job to do them automatically at specific times or intervals.

  • So, a cron job is like a little helper that follows a schedule you've set and takes care of repetitive tasks for you, making your life easier by automating routine jobs on your computer or server.

  • Using a cron job to call an API once daily is a smart way to manage limited API calls. Here's a simple explanation of how it works:

    1. Setting a Schedule: You set up a schedule for your computer or server to automatically make a request to the API once a day. This schedule is like an alarm clock for your computer, telling it when to make the API call.

    2. API Request: When the scheduled time arrives (e.g., every day at a specific time), your computer wakes up and sends a request to the API. It's like your computer making a phone call to the API server to ask for information.

    3. Data Retrieval: The API server receives the request, processes it, and sends back the data you need. For example, it might provide you with daily weather updates, news, or any other information you requested.

    4. Automation: The great thing is that you don't have to manually make this API call every day. The cron job automates this task for you, ensuring that you get your daily data without having to remember to do it yourself.

    By using a cron job, you can make the most of your limited API calls by fetching the data you need on a regular schedule, such as once daily, while saving time and effort.

  • To create a cron job in Node.js, you can use the popular node-cron library. Here's an example of how to create a simple cron job in Node.js:

First, make sure you have Node.js installed on your system. Then, follow these steps:

  1. Create a new Node.js project and navigate to its directory in your terminal.

  2. Install the node-cron library using npm or yarn:

npm install node-cron
# or
yarn add node-cron
  1. Create a JavaScript file (e.g., cronJob.js) to write your cron job code.

  2. In cronJob.js, write the code for your cron job. For example, let's create a cron job that logs a message every day at a specific time (8:00 AM):

const cron = require("node-cron");

// Schedule the cron job to run every day at 8:00 AM
cron.schedule("0 8 * * *", () => {
  console.log("Cron job executed at 8:00 AM daily.");
});

In the above code:

  • We import the node-cron library.
  • We use the cron.schedule function to define the schedule. '0 8 * * *' represents the cron expression for running the job at 8:00 AM every day.
  1. Save the cronJob.js file.

  2. Run your cron job script using Node.js:

node cronJob.js

Your cron job will now execute at the specified time each day and log the message.

You can replace the log message with any code you want to run as part of your cron job, such as making API requests or performing other tasks. Just make sure to adjust the schedule (the cron expression) to match your desired timing.