Code Monkey home page Code Monkey logo

full-stack-restaurant's Introduction

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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

full-stack-restaurant's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

full-stack-restaurant's Issues

nextAuth error

Am at the authentication section of this project and i keep getting this error in my terminal when i click on the google icon on my login page and sign in using the google provider see the below ==>
t\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:62499 { name: 'OAuthCallbackError', code: undefined }, providerId: 'google', message: 'JWT expired, now 1701298256, exp 1701269254' }
below is my auth.ts file in my utils folder ==>
`import {NextAuthOptions} from "next-auth";
import GoogleProvider from "next-auth/providers/google";

export const authOptions:NextAuthOptions = {
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
}),
],
secret: process.env.NEXTAUTH_SECRET,
}
`

and below is my route file inside the [...nextauth] directory
`
import { authOptions } from "@/utils/auth";
import NextAuth from "next-auth/next";

const handler = NextAuth(authOptions)

export {handler as GET, handler as POST}
`

and below is my env file ==>
NEXTAUTH_URL =http://localhost:3000 NEXTAUTH_URL_INTERNAL =http://localhost:3000 DATABASE_URL="postgresql://postgres:emmy1599@localhost:5432/postgres?schema=public" NEXTAUTH_SECRET="password" GOOGLE_CLIENT_ID=531374619769-b2cn7vaj4btu1n4knklurd3ksj1iouqf.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=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

Clicking on pay now in /pay page gives an error.

The orders page and the orders table in db gets updated, but I don't get redirected to the success page.

Error handling response: Error: Blocked a frame with origin "" from accessing a cross-origin frame.
at tryShowingMateBar (eval at success (), :5428:57)

Report Only] Refused to frame '<URL>' because it violates the following Content Security Policy directive: "frame-src https:".

Session on database

HI, I downloaded your project and when I try to login, the database create login, account, but don't create the session. How can I solve this? @safak

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.