Create .env
file by copying sample.env
. Enter your publicKey
, privateKey
, and urlEndpoint
from the developer section in your ImageKit dashboard - https://imagekit.io/dashboard#developers.
You will also have to put publicKey
and urlEndpoint
value in index.html
file.
Install all dependencies
yarn install
Run the sample application
node server.js
This will run an HTTP server on port 3000. Open http://localhost:3000 in your browser. Choose a file and upload it. Open the console to see the response object in logs.