Git Product home page Git Product logo

photo-repo's Introduction

PhotoRepo

Project Overview

This project is a photo gallery website showcasing an assortment of personal photos. It is built using React and Next.js, hosted on Vercel.

Features

  • Photo Gallery: Display a collection of photos in an elegant and responsive gallery format.
  • React and Next.js: Utilize the power of React for building a dynamic and interactive user interface with the efficiency of server-side rendering provided by Next.js.
  • Vercel Hosting: Deploy and host the website seamlessly with Vercel, ensuring high performance and reliability.
  • Image Gallery Template: Leverage a pre-built Vercel template for creating a visually appealing and user-friendly photo gallery.
  • Email Form: Allow users to contact you through an email form, enhancing communication and engagement.

Prerequisites

Before running or deploying the project, make sure you have the following installed:

Getting Started

  1. Clone the repository:

    git clone https://github.com/josheewa/photo-repo.git
  2. Navigate to the project directory:

    cd photo-repo
  3. Install dependencies:

    npm install
  4. Run the development server:

    npm run dev

    This will start the development server. Open http://localhost:3000 in your browser to view the website.

Deployment

To deploy the website to Vercel:

  1. Create a Vercel account:

    Sign up for a Vercel account.

  2. Install Vercel CLI:

    npm install -g vercel
  3. Deploy the project:

    vercel

    Follow the prompts to link your Vercel account and configure deployment settings.

Configuration

Image Gallery Configuration

  • Cloudinary as Backend Host:
    • Sign up for a Cloudinary account.
    • Upload your photos to Cloudinary and obtain the necessary credentials.
    • Update the gallery configuration in the source code to fetch images from your Cloudinary account.
    • Replace the existing image URLs with the Cloudinary URLs in the designated gallery component.

Email Form Configuration

  • Setting up Email Form:
    • Update the email form settings in the source code to use your preferred email service or API.
    • Replace the placeholder values with your actual email service API key, endpoint, or other required information.

Environment Variables

  • Secure Information with Environment Variables:
    • Create a .env.local file in the project root.
    • Add the following environment variables:
      • NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: Your Cloudinary cloud name
      • CLOUDINARY_API_KEY: Your Cloudinary API key.
      • CLOUDINARY_API_SECRET: Your Cloudinary API secret.
      • CLOUDINARY_FOLDER: Your Cloudinary folder
      • TRANSPORT_EMAIL: Your transporter email
      • TRANSPORT_EMAIL_PASS: App password for transporter email
    • Ensure the .env.local file is included in your .gitignore to prevent sensitive information from being committed to version control.
    • Transfer the local environment variables to Vercel to ensure that the website has access to the required configuration settings during the build process.

By configuring these settings and using environment variables, you can easily customize the image gallery source and email form without exposing sensitive information publicly. Always ensure that your environment variables are kept secure and not shared publicly.

Contributing

Feel free to contribute to the project by opening issues, submitting pull requests, or providing feedback. Your input is highly appreciated!

License

This project is licensed under the GNU General Public License.

photo-repo's People

Contributors

josheewa avatar

Stargazers

 avatar

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.