Start by installing the required libraries. Open your terminal and run:
bashCopy codenpm install axios form-data
- Axios: Helps you make HTTP requests.
- FormData: Allows you to send data in a format the API expects.
Base Configuration #
Next, set up your environment by creating a .env
file in your project and adding the base URL of the API:
bashCopy codeBASE_URL=http://api.privicore.com
This file will help manage your API configurations without hardcoding them into your scripts.
Leave A Comment