Skip to content

lyjeileen/twitter-clone

Repository files navigation

Twitter Clone

Project Description

A twitter clone with basic functions like login, send tweets, comment, view tweets.


Stack Choices:

  • NextJS
  • React
  • Tailwindcss
  • Material-UI
  • PostgreSQL
  • Prisma
  • next-auth

Visual Story

  • Users can see all the tweets and send/delete a tweet. Delete button only shows for the owner of tweets. The logged in user's avatar is shown on the navbar "Users can see all the tweets and send a new tweet."

  • Users can view or write comments for tweets. For users without avatar like Jason, a default avatar will be shown.

    "Users can view or write comments for tweets."

  • Users can check tweets of one user or a single tweet.

    "Users can check user page or single tweet page."

Getting Started

  1. Fork this repository, then clone your fork of this repository.
  2. Run npm install.
  3. Set up Prisma using npx prisma init.
  4. Migrate tables using npx prisma migrate dev.
  5. Add .env file and include database and nextauth settings listed below. (Remember to add .env to your .gitignore file to avoid storing it into Git)
  1. Run the development server:
npm run dev
# or
yarn dev

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

About

A Twitter clone built with NextJS, Prisma, React, Tailwind, Material UI. Core functions include login, send/view/delete tweets and comments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors