Home

Awesome

Twitter Clone Backend

NOTE: As of 10-06-2022 at 19:35 IST, I am archiving this repository. It was fun while it lasted.

Twitter clone backend built with Prisma and GraphQL.

If you are looking for the frontend repo, click here

Core Packages

  1. prisma - allows us to define our application models and generates CRUD operations from our defined models
  2. graphql-yoga - graphql server
  3. jsonwebtoken - authentication

Features

Running locally

Prisma setup

Environmental variables setup

JWT_SECRET=<YOUR_SECRET>
PORT=<PORT>

Then run <code>npm i && npm run dev</code> to start the development server

Watch this video on how to setup locally

New Tweet

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 you need to manually setup the environmental variables using the heroku dashboard

UI

Home

Home

Explore

Explore

Profile

Profile

Edit Profile

Edit Profile

New Tweet

New Tweet

Tweet

Tweet