GithubHelp home page GithubHelp logo

harundogdu / twitter-clone Goto Github PK

View Code? Open in Web Editor NEW
45.0 3.0 12.0 1.35 MB

This is a Twitter Clone project built with Next.js, Prisma, MongoDb, Tailwind, Typescript and NextAuth libraries. It is a full-stack project that uses Next.js for the frontend and Prisma for the backend. It is a Twitter clone that allows users to create an account, login, logout, follow other users, like and retweet tweets and more.

Home Page: https://twitter-clone-hd.vercel.app/

License: MIT License

TypeScript 98.61% JavaScript 1.03% CSS 0.06% Shell 0.30%
nextjs prisma twitter-clone mongodb nextauth tailwind axios date-fns hot-toast node-js

twitter-clone's Introduction

logo

Twitter Clone

This is a Twitter Clone project built with Next.js, Prisma, MongoDb, Tailwind, Typescript and NextAuth libraries. It is a full-stack project that uses Next.js for the frontend and Prisma for the backend. It is a Twitter clone that allows users to create an account, login, logout, follow other users, like and retweet tweets, and more.


🌟 About the Project

image

🧰 Getting Started

‼️ Prerequisites

  • Sign up for a MongoDB account HERE
  • Install Node JS in your computer HERE

🔑 Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DATABASE_URL

NEXTAUTH_JWT_SECRET

NEXTAUTH_SECRET

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

⚙️ Installation

A step by step series of examples that tell you how to get a development env running Clone the repository

git clone https://github.com/yourusername/twitter-clone.git

Install dependencies

npm install

Generate Prisma Client with the following command

npx prisma generate

Run the development server

npm run dev

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

Available Scripts

  • npm run dev - Runs the app in the development mode.
  • npm run start - Runs the app in the production mode.
  • npm run fresh - Drops the database, creates a new one, and runs all migrations.
  • npx prisma db seed - Runs the seed file.

📔 Prisma

Prisma is an open-source database toolkit that makes it easy for developers to reason about their data and how they access it. It is used to query a database inside a Node.js or TypeScript application.

📔 Prisma Schema

The Prisma schema is the single source of truth for your database schema. It describes your database tables, columns, and relations. It also defines which operations are available on your data.

📔 Prisma Client

Prisma Client is an auto-generated and type-safe query builder for Node.js & TypeScript. It's used as an alternative to writing plain SQL, or using another database access tool such as SQL query builders (e.g. SQLAlchemy) or ORMs (e.g. TypeORM).

👾 Built With

🤝 Authors

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.

twitter-clone's People

Contributors

ahmetenesbahar avatar atahantutar avatar harundogdu avatar yusufalperendumlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

twitter-clone's Issues

Redirect by finding links and tags in bio and post.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

image

  • Lİnkler yönlendirilecek.

Home section

image

  • Uygulamada giriş yapılmadan da Home butonu gözükecek.

All users data is visible

Describe the bug
All users data is visible

Expected behavior
only relevant data should be returned

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Password icon will be added

Screenshot_41

  • Şifrenin görünürlüğüne dair icon eklenip üstüne basıldığında şifremizin gözükmesi sağlanacak.

Method creation

utils.js altına aşağıdaki metodları oluşturalım.

isNullOrUndefined
isNullOrUndefined

All button structures in the project will be arranged

  • Buton yapısı düzenlenecek ve daha düzgün bir hale getirilecek.
  • Primary ve secondary buton yapısı oluşuturulacak.
  • Value, onClick, style zorunlu değişken olurken hover gibi yapılar isteğe göre tanımlanacak.

Redirect on image click event

image

  • Tweetlerin üzerindeki resimlere tıklanıldığı zaman yönlendirmeler hatalı yere yapılıyor.
  • Bu konuda düzeltmeler yapılmalı.

Link will be added

Screenshot_57

  • @Fimpleos ve mail linki bağlantılar yönlendirilecek.
  • Yazı stilli düzenlenecek.

Routing errors

image

  • Oklar ile gösterdiğim kısımlarda tıklanıldığı zaman yönlendirmeler hata veriyor.

Scrollbar arrangement

image

  • Sayfadaki commitler arttıkça ilk atılanlar alta doğru kayıp ulaşılamıyor.
  • Bunun için bir scrollbar gerekli.
  • Aynı zamanda kişinin fotoğraf, kullanıcı adı ve isminin yer aldığı alanda alta doğru kayıyor. "Position" düzenlenmesi gerekiyor.

Documentation development

-The Readme.md file should be created (be detailed please)
-Repo description & repo tags should be created.

Username will be edited

Screenshot_59

  • Kullanıcı adı, kullanıcının sonradan değiştirmesini göz önünde bulundurarak değişiklik yapılabilir bir yapı haline getirilecek.
  • Eğer bahsettiğimiz değişiklik sonucu daha önceden kullanılan isim olursa buton yapımız 'Disable' hale getirilecek.

Responsive profile photo

image

  • Ekran boyutuna bağlı kalmaksızın "Who to follow" alanındaki profil fotoğrafları düzenlenip, sorunsuz birşekilde çalışmalıdır.

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.