Giter Site home page Giter Site logo

gallery's Introduction

Gallery

This is a web application for uploading images to an Amazon S3 bucket and retrieving them using React.js, TypeScript, MongoDB, Express.js, and Node.js.

Features

  • Upload images to an Amazon S3 bucket.
  • Store image metadata in a MongoDB database.
  • Retrieve and display images from the S3 bucket.
  • Search images by name.

Technologies Used

  • Frontend:
    • React.js
    • TypeScript
    • Tailwind CSS (for styling)
    • Axios (for HTTP requests)
  • Backend:
    • Express.js
    • Node.js
    • MongoDB (for image metadata storage)
    • Amazon S3 (for image storage)
  • Others:
    • Multer (for handling file uploads)
    • AWS SDK (for interacting with S3)
    • dotenv (for environment variable management)

Getting Started

  1. Clone this repository:

    git clone https://github.com/chirag0002/Chirag-Dobby
  2. Set up environment variables:

    Create a .env file in the server/api directory and add the following environment variables:

    ACCESS_KEY=your_aws_access_key
    SECRET_ACCESS_KEY=your_aws_secret_access_key
    REGION=your_aws_region
    BUCKET=your_s3_bucket_name
    DB=your_mongodb_connection_uri
    PORT=your_server_port
    JWT_KEY=jwt_secret_key
    
  3. Start the backend server:

    npm install
    npm run start
  4. Start the frontend application:

    npm install
    npm run start
  5. Open your browser and navigate to http://localhost:5137 to view the application.

Usage

  • To upload an image, click on the "Upload" button and select the image file. Provide a name for the image and click "Upload".
  • Uploaded images will be stored in the Amazon S3 bucket and their metadata will be saved in the MongoDB database.
  • Images can be searched by name using the search bar.
  • Click on an image to view it in full size.

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.