Skip to content

A Node.js based backend server for a twitter like website using Express, PostgreSQL and Socket.io

Notifications You must be signed in to change notification settings

alanansari/twitter_backend

Repository files navigation

Tweeter-Backend

This is a Twitter clone whose backend is made in Node.js and Express Framework.

Backend Key Features

  • Email or Google OAuth Signup/Signin.
  • JWT Authentication with complete integration of Refresh and Access tokens.
  • PostgreSQL for the DB because of its open source nature and several useful features.
  • Real time chat system using web-sockets (socket-io).
  • PostgreSQL database implementation using SequelizeORM for its features like relations, eager and lazy loading, read replication and more.

Preview

tweeter_demo_vid.mp4

RUNNING THE SERVER

  1. Clone the repository:
git clone https://github.com/alanansari/twitter_backend.git

To run the server, you need to have NodeJS installed on your machine. If you don't have it installed, you can follow the instructions here to install it.

  1. Install the dependencies:
npm install
  1. Setup .env file in base directory:
PORT = 3000
DATABASE_URL = ''
jwtsecretkey1 = ''
MAIL_ID = ''
MAIL_PASS = ''
GOOGLE_CLIENT_ID = ''
GOOGLE_CLIENT_SECRET = ''
GOOGLE_AUTH_URI = ''
  1. Run the backend server on localhost:
npm start

You can access the endpoints from your web browser following this url

http://localhost:[PORT]

About

A Node.js based backend server for a twitter like website using Express, PostgreSQL and Socket.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published