abdallahmalima / next13-remix-jokes-rebuild

Rebuild of Remix Jokes using Next 13 with Tailwind CSS and Prisma. Additional /demo route for React Server Component and Next 13 functionality examples. NB! Database might be sleeping, give it a minute after the initial application error.

Home Page:https://next13-remix-jokes-rebuild.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next 13 "Remix Jokes" Rebuild

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

It is a rebuild of Remix Jokes using Next 13 and Tailwind CSS.

It has additional /demo routes for React Server Component and Next 13 functionality examples.

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

Getting Started

First, npm install and run the development server with npm run dev.

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

Prisma setup

Add a .env file to the root of the project, refer to .env.sample for the required environment variables. You need decide between prisma local development with sqlite or a real database with for example sqlserver. Define it in the schema.prisma file.

When using sqlserver, you need to migrate the database schema with:

npm run prisma.migrate

When using sqllite, initialize with:

npm run prisma.push

Seed prisma/seed.ts for initial data:

npm run prisma.seed

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.

About

Rebuild of Remix Jokes using Next 13 with Tailwind CSS and Prisma. Additional /demo route for React Server Component and Next 13 functionality examples. NB! Database might be sleeping, give it a minute after the initial application error.

https://next13-remix-jokes-rebuild.vercel.app/


Languages

Language:TypeScript 96.3%Language:CSS 1.9%Language:TSQL 1.0%Language:JavaScript 0.8%