{"repo":"prisma/fullstack-prisma-nextjs-blog","free":true,"listed":false,"github":"https://github.com/prisma/fullstack-prisma-nextjs-blog","clone":"git clone https://github.com/prisma/fullstack-prisma-nextjs-blog.git","description":"Fullstack Blog with Next.js and Prisma","language":"TypeScript","stars":138,"topics":["nextjs","postgres","prisma"],"license":null,"category":"databases-storage","readme_excerpt":"Fullstack Authentication Example with Next.js and NextAuth.js With Railway Integration Without the Railway integration This is a starter that shows how to implement a fullstack app in TypeScript with Next.js with the following stack: - React (frontend) - Next.js API routes - Prisma Client (backend). - NextAuth.js for authentication. - PostgreSQL as the database of choice. Before you deploy the application to Vercel, ensure you - (Optional) Sign in to Railway and create a PostgreSQL database - Create a separate GitHub OAuth application before you deploy your application - Update the Authorization callback URL with the URL of the deployed app after successfully deploying the app Note that the app uses a mix of server-side rendering with getServerSideProps (SSR) and static site generation with getStaticProps (SSG). When possible, SSG is used to make database queries already at build-time (e.g. when fetching the public feed). Sometimes, the user requesting data needs to be authenticated, so SSR is being used to render data dynamically on the server-side (e.g. when viewing a user's drafts). Getting started 1. Download and install dependencies Clone this repository: Install npm dependencies: 2. Create and seed the database If you're using Docker on your computer, the following script to set up PostgreSQL database using the docker-compose.yml file at the root of your project: Run the following command to create your PostgreSQL database. This also creates the User , Post , Account , ","default_branch":null,"files":null,"tree":[],"storefront":"/r/prisma","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prisma/fullstack-prisma-nextjs-blog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}