Code Monkey home page Code Monkey logo

tweeter-backend's Introduction

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. 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. Running with docker

    1. Using docker ( considering you have external DB setup )
      docker build -t tweeter-backend . &&
      docker run -p 3000:3000 --network=host tweeter-backend
      
    2. Using docker compose
      docker-compose up
      
  2. Running with local machine

    1. Install dependencies

      npm install
    2. Run the server on localhost:

      npm start

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

http://localhost:[PORT]

tweeter-backend's People

Contributors

alanansari avatar shrutikolla avatar sugan0tech 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.