Back to articles
Setup Appwrite Storage with NestJS (Step-by-Step Guide)

Setup Appwrite Storage with NestJS (Step-by-Step Guide)

via Dev.to WebdevManendra Verma

Setup Appwrite Project Step 1 — Create an Appwrite Project Go to  cloud.appwrite.io  and sign up / log in Create a  new project  (e.g. "Neutter") Copy your  Project ID  from the project settings Step 2 — Create a Storage Bucket In the Appwrite console, go to  Storage  →  Create Bucket Name it something like  files Set permissions: For now, allow  Any  to  read  (so files can be viewed) Allow  Any  to  create  (your server will upload on behalf of users) Copy the  Bucket ID Step 3 — Get an API Key Go to  Settings  →  API Keys  →  Create API Key Give it  Storage  permissions (read, write, delete) Copy the  API Key Setup NestJS Project Step 1 — Create project npm i-g @nestjs/cli nest new backend cd backend Step 2 — Create Storage Module nest g module AppwriteService nest g service AppwriteService nest g controller AppwriteService Step 3 — Install the SDK npm install node-appwrite npm install multer npm install --save-dev @types/multer Step 4 — Add to your  .env APPWRITE_ENDPOINT = https :

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles