Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content

jurichar/mynextspace

Repository files navigation

MY NEXT SPACE

This is a Next 13 project bootstrapped with create-next-app

Presentation

This is a project to learn Next.js as fullstack framework.

The goal is to create a clone of myspace.com.

And to learn how to use Next.js with serverless database and without back-end framework.

Screenshots

screenshot

Features

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.

tools used

Steps

database serverless

go to : https://neon.tech/ create new project create new database with the name you want. create new database with the name 'shadow'. add the database url to the .env file.

prisma

npx prisma init // create the prisma folder allow migration to the database at the file : prisma/schema.prisma add shadow database to the file : prisma/schema.prisma npx prisma migrate dev // create the migration

/lib/prisma.ts // create the prisma client export const prisma = new PrismaClient() that allow to use prisma in the app like : prisma.user.findMany()

Db_auth

npm i @next-auth/prisma-adapter add adapter to the file : pages/api/auth/[...nextauth].ts add the secret to the .env file add the database url and the shadow url to the .env file

About

myspace copy in next

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published