Giter Site home page Giter Site logo

x-clone-with-nextjs's Introduction

X Mini Clone with NextJS



๋ฌด์—‡์„ ๋งŒ๋“ค์—ˆ๋‚˜? (ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ)

X(Twitter)์˜ ๋ฏธ๋‹ˆ ํด๋ก  ๋ฒ„์ „์„ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.
ํšŒ์›๊ฐ€์ž…, ๋กœ๊ทธ์ธ, ๊ฒŒ์‹œ๊ธ€ ์“ฐ๊ธฐ, ๊ฒŒ์‹œ๊ธ€ ์ข‹์•„์š” ๋ˆ„๋ฅด๊ธฐ ๊ธฐ๋Šฅ์„ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.


์™œ ๋งŒ๋“ค์—ˆ๋‚˜? (์ œ์ž‘ ๋ชฉ์ )

๋…ธ๋งˆ๋“œ ์ฝ”๋” ๋ฆฌ์•กํŠธ ์Šคํ„ฐ๋”” 3๊ธฐ ์กธ์—…๊ณผ์ œ๋ฅผ ์œ„ํ•ด ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.


์–ธ์ œ ๋งŒ๋“ค์—ˆ๋‚˜? (์ œ์ž‘ ๊ธฐ๊ฐ„)

2023.11.06 ~ 2023.11.13


์–ด๋–ป๊ฒŒ ๋งŒ๋“ค์—ˆ๋‚˜? (๋Œ€ํ‘œ ๊ฐœ๋ฐœ ๊ธฐ์ˆ )

NextJS, TypeScript, TailwindCSS, Prisma๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ฐœ๋ฐœํ•˜์˜€์Šต๋‹ˆ๋‹ค.
๋ฐฐํฌ๋Š” Vercel๋กœ ํ•˜์˜€์œผ๋ฉฐ, DB๋Š” Supabase์˜ postgreSQL๋ฅผ ์ด์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.


์‚ฌ์ง„๋“ค

/ /login ใ…ค/joinใ…ค
============== ============== ==============
/join/create /tweets
============== ==============
/tweets/:id /tweets/upload
============== ==============

์•ž์œผ๋กœ ์ถ”๊ฐ€ํ•  ๊ฒƒ๋“ค

  • ๋ณธ์ธ ๊ธ€ ์ˆ˜์ •, ์‚ญ์ œ ๊ธฐ๋Šฅ
  • ๋Œ“๊ธ€ ๊ธฐ๋Šฅ
  • ๋ณธ์ธ ๋‹‰๋„ค์ž„, ๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝ ๊ธฐ๋Šฅ
  • ํƒˆํ‡ด ๊ธฐ๋Šฅ

์‹คํ–‰ ํ•ด๋ณด๊ธฐ

  • npm install : ๋‹น์—ฐํžˆ ํ•ด์•ผํ•˜๋Š”๊ฑฐ์ฃ 
  • ์ตœ์ƒ์œ„ ๊ฒฝ๋กœ์— .env.local ํŒŒ์ผ ์ƒ์„ฑ ํ›„ ์•„๋ž˜ ํ‘œ ์ฐธ๊ณ ํ•ด์„œ ์ฑ„์šฐ์‹œ์ฃ 
KEY VALUE's description
POSTGRES_PRISMA_URL your sql url (maybe postgreSQL)
COOKIE_NAME your cookie name
COOKIE_PASSWORD your cookie password
  • npm run prismaDevPush : Prisma ๋ชจ๋ธ์„ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ ์šฉํ•˜์—ฌ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค. (๋ชจ๋ธ์„ ๋ณ€๊ฒฝํ–ˆ์œผ๋ฉด ์‹คํ–‰ํ•ด์ค์‹œ๋‹ค.)
  • npx prisma generate : Prisma ๋ชจ๋ธ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ์ฝ”๋“œ๋ฅผ ์ž๋™ ์ƒ์„ฑํ•˜์—ฌ ๊ฐœ๋ฐœ ์ƒ์‚ฐ์„ฑ์„ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค. (schema.prisma ํŒŒ์ผ์„ ๋ณ€๊ฒฝํ•˜๋ฉด ์‹คํ–‰ํ•ด์ค์‹œ๋‹ค.)
  • npm run prismaStudio : Prisma Studio ๋„๊ตฌ๋ฅผ ์‹คํ–‰ํ•˜๋Š” ๋ช…๋ น์–ด๋กœ, ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์‹œ๊ฐํ™”์™€ ํšจ์œจ์ ์ธ ๋ฐ์ดํ„ฐ ์กฐ์ž‘์„ ์ œ๊ณตํ•˜์—ฌ ๊ฐœ๋ฐœ ๋ฐ ๋””๋ฒ„๊น…์„ ์šฉ์ดํ•˜๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. (Not Required)
  • npm run dev : Next.js ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๊ฐœ๋ฐœ ์„œ๋ฒ„ ๋ชจ๋“œ๋กœ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค

x-clone-with-nextjs's People

Contributors

ice0208 avatar

Watchers

 avatar

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.