Skip to content

notJust-dev/TwitterBackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Backend Application

This project is a Twitter backend application built using Node.js, Prisma, SQLite, JWT authentication, passwordless authentication, various middlewares, user management functionalities, and Docker containerization.

Features

  • Node.js: Backend server using Node.js for handling HTTP requests.
  • Prisma: Database ORM for interfacing with an SQLite database.
  • SQLite: Embedded database for storing application data.
  • JWT Authentication: JSON Web Token-based authentication for secure API access.
  • Passwordless Authentication: Authentication method without using passwords.
  • Middlewares: Implemented for authentication, error handling, and more.
  • User Management: Functionalities for managing users, their profiles, and tweets.
  • Docker Containerization: Docker setup for containerizing the application.

Setup

  1. Clone the repository:
    git clone <repository-url>
    cd twitter-backend
    
  2. Run Project:
 npm install
 npx prisma migrate dev
 npm start

Endpoints

Authentication Endpoints

  • POST /auth/login: User login endpoint.
  • POST auth/logout: User logout endpoint.
  • POST /auth/reset-password: Reset password endpoint (passwordless).

Other Endpoints

There are various other endpoints for user management, tweets, and additional functionalities.

  • Users : POST,GET - /users.
  • Tweets : POST,GET - /tweets.

Middlewares

Implemented Middlewares

  • authMiddleware: Middleware for JWT authentication.
  • errorHandlingMiddleware: Error handling middleware.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •