Skip to main content

Node Quickstart

This project is a simple web application that demonstrates how to upload objects to a Tigris storage bucket and manage them. It's built using Next.js router and includes implementation of both apis and client.

Node Quickstart

Start by cloning the project to your computer:

git clone https://github.com/tigrisdata-community/storage-sdk-examples

Running project locally

  1. Install dependencies:

    npm install
  2. Configure environment variables: Copy .env.example to .env and update with your Tigris credentials:

    TIGRIS_STORAGE_ACCESS_KEY_ID=your-tigris-key-id
    TIGRIS_STORAGE_SECRET_ACCESS_KEY=your-tigris-access-key
    TIGRIS_STORAGE_BUCKET=your-bucket-name
  3. Run the development server:

    npm run dev
  4. Open your browser: Navigate to http://localhost:3000

How to deploy this project

This project is designed to be easily deployed to Vercel.

To deploy on Vercel:

  1. Push the updated code to your GitHub/GitLab
  2. Import project in Vercel dashboard
  3. Add environment variables in Vercel settings:
- TIGRIS_STORAGE_ACCESS_KEY_ID
- TIGRIS_STORAGE_SECRET_ACCESS_KEY
- TIGRIS_STORAGE_BUCKET
  1. Deploy!