Coder Social home page Coder Social logo

object-storage-uploader's Introduction

Description

Upload file to Cloud Buckets

It uses IBM Cloud Object Storage for objects storage.

This is a Next.js project bootstrapped with create-next-app.

object-storage.png

Dependencies

In order to build this app, you will need:

Local dev pre-requirements

IBM Object Storage

Provision the Object Storage service clicking here

Gather credentials

  • From the main navigation menu (โ˜ฐ), select Resource list to find Cloud Object Storage service under Storage.
  • Click on Cloud Object Storage service -> Service credentiais and click on New credential button to create a new credential.
  • Click on Advanced options and turn on Include HMAC credential
  • Click on Add button
  • Collect the access_key_id and secret_access_key

Create bucket

  • Click on Buckets and, on Create bucket button, fill all info and save it
  • Click on your newly created bucket and on Configuration tab
  • Scroll down to Endpoints and collet the public url

Building the App

  1. Create a copy of .env.example file, naming it .env in the root of the directory, this is where we'll put the project's environment variables.
  2. Add your keys to the .env file:
BUCKET_PUBLIC_ENDPOINT=your-public-url:goes-here
ACCESS_KEY_ID=your-access_key_id:goes-here
SECRET_ACCESS_KEY=your-secret_access_key:goes-here
BUCKET_NAME=your-bucket_name:goes-here
  1. Navigate to project application directory and type into the console:
yarn

Yarn will download all project libraries

  1. To start your project, type into the console
yarn dev

Your project will be available on http://localhost:3000

  1. Alternatively, you can build the project for production using the following command
yarn build

Execute the production build using the following command

yarn start

object-storage-uploader's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.