A twitter clone with basic functions like login, send tweets, comment, view tweets.
- NextJS
- React
- Tailwindcss
- Material-UI
- PostgreSQL
- Prisma
- next-auth
-
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 view or write comments for tweets. For users without avatar like Jason, a default avatar will be shown.
-
Users can check tweets of one user or a single tweet.
- Fork this repository, then clone your fork of this repository.
- Run
npm install. - Set up Prisma using
npx prisma init. - Migrate tables using
npx prisma migrate dev. - 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)
- DATABASE_URL
- EMAIL_SERVER
- EMAIL_FROM
- NEXTAUTH_URL=http://localhost:3000
- SECRET
- Run the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the app.

