Giter VIP home page Giter VIP logo

twitter-clone-backend's Introduction

Twitter Clone - Backend

Built with Prisma + GraphQL If you are looking for the frontend repo, it lives here frontend

The Stack

Backend

  1. Prisma - provides data modelling and a nice set of CRUD APIs to work with
  2. GraphQLServer - graphql-yoga
  3. Authentication - JWT
  4. Image upload - Cloudinary

Frontend

  1. Frontend - Our beloved React
  2. State Management - ApolloClient (requests, updating UI, caching)
  3. Styling - Styled Components
  4. Routing - React Router
  5. Notifications - React Toastify
  6. Popups- Reactjs popup

You can do these things

  • Login / Signup
  • New Tweet
  • Like
  • Retweet
  • Comment
  • View Profile
  • Edit Profile
  • Search by users, tags, people
  • Toggle between light and dark mode
  • Cycle through five different accent colors

How to setup locally

  • You need to have a prisma account

  • Make sure to install the prisma globally in your machine

     npm i -g prisma
    
     # once you created your account, you can login from the terminal
     prisma login
  • Then have a look at this video if prisma sounds new to you.

Everything Is AWESOME

Deploying the backend to heroku

First create an heroku account and install the heroku cli globally and login

npm i -g heroku
heroku login

Once logged in, create a new heroku application and push it to the remote 'heroku'

heroku create
git push heroku master

Then we need to manually setup the environmental variables using the heroku dashboard

Look at the UI

Dark Mode

Dark

Light Mode

Light

Mobile Layout

Mobile

TODO

  • Real-time notifications using GraphQL subscriptions
  • Bookmark tweeets
  • Show retweets on user profile
  • Show trending tags
  • Better mobile support
  • Add OLED theme

twitter-clone-backend's People

Contributors

manikandanraji avatar

Watchers

James Cloos 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.