Giter VIP home page Giter VIP logo

photography-website-nextjs14-full-stack's Introduction

Introduction

Home page from https://vercel.com/templates/next.js/photo-blog

Installation

go dev branch

Tech Stack + Features

  • Photo upload with EXIF extraction
  • Built-in auth
  • Light/dark mode

Database

This project uses Mongo database on Mongodb cloud. To setup a DB for your local dev:

  1. Create a free account and a new Database
  2. From the dashboard, create a branch and click "Connect" button.
  3. Hit Create password and select Prisma in Connect with dropdown
  4. Copy the url to .env DATABASE_URL file
  5. run npx prisma generate && npx prisma db push to create the tables

Frameworks

  • β–²Next.js(using App Directory and React Server Components) – React framework for building performant apps with the best developer experience
  • πŸ”’Auth.js – Handle user authentication with ease with providers like Google, Twitter, GitHub, etc.
  • πŸ“€Prisma – Typescript-first ORM for Node.js

Platforms

  • β–²Vercel – Easily preview & deploy changes with git
  • πŸƒMongodb cloud – Build faster. Build smarter.​​
  • Uploadthing - File Uploads For Next.js Developers

UI

  • Tailwind CSS – Utility-first CSS framework for rapid UI development
  • Shadcn/ui – Re-usable components built using Radix UI and Tailwind CSS
  • Framer Motion – Motion library for React to animate components with ease
  • Lucide – Beautifully simple, pixel-perfect icons
  • next/font – Optimize custom fonts and remove external network requests for improved performance
  • ImageResponse – Generate dynamic Open Graph images at the edge

photography-website-nextjs14-full-stack's People

Contributors

ecarry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dattmavis callmel

photography-website-nextjs14-full-stack's Issues

Question about uploading image

Hi there! Excuse me for taking your time again.
I tried to add photo record on prisma, but in the home page it shows no data.

Screenshot 2024-03-01 at 21 27 15 Screenshot 2024-03-01 at 21 27 29

I'm not sure whether the localhost:5555 is the right place to upload images, or there is another dashboard page for uploading, especially after we deploy the website using Vercel.

Many thanks for your time and help!

Deployment error for prisma

Hi! Thanks for this brilliant work!

I followed the readme to set up the environment, but there is an error regarding the prisma.photo.findMany(), is there anything I should do in the planetscale dashboard?

This is the whole terminal output:

> [email protected] dev
> next dev

   β–² Next.js 14.1.0
   - Local:        http://localhost:3000
   - Environments: .env

 βœ“ Ready in 1696ms
 βœ“ Compiled /middleware in 166ms (217 modules)
 β—‹ Compiling / ...
 βœ“ Compiled / in 2.5s (1505 modules)
 βœ“ Compiled in 200ms (708 modules)
 β¨― PrismaClientKnownRequestError: 
Invalid `prisma.photo.findMany()` invocation:


The table `(not available)` does not exist in the current database.
    at async HomePage (page.tsx:15:20)
 β¨― PrismaClientKnownRequestError: 
Invalid `prisma.photo.findMany()` invocation:


The table `(not available)` does not exist in the current database.
    at async HomePage (page.tsx:15:20)

Thank you! Looking forward to your reply.

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.