New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

invite-only-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

invite-only-server

Node.js API with JWT authentication and Firebase integration

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Invite-Only Server

This is a Node.js backend server for the Invite-Only application, built with Express, Firebase, and TypeScript.

Prerequisites

Ensure you have the following installed:

  • Node.js (version 18 or later)
  • Docker (if using Docker)
  • Firebase CLI (for local Firebase emulation)

Setup

  • Clone the repository:

    git clone https://github.com/your-repo/invite-only-server.git
    cd invite-only-server
    
  • Install dependencies:

    npm install
    
  • Set up environment variables:

    • Copy .env.example to .env:

      cp .env.example .env
      
    • Fill in the Firebase credentials and other required values in .env.

  • Run the app in development mode:

    npm run dev
    

    The server will be available at http://localhost:5000.

Running with Docker

  • Build the Docker image:

    docker build -t invite-only-server .
    
  • Run the container:

    docker run -p 5000:5000 --env-file .env invite-only-server
    

API Endpoints

Authentication

  • POST /login - Logs in a user and returns a JWT token.

User Info

  • GET /user/:id - Fetches user information by ID.

Events

  • GET /events - Retrieves a list of events.

Deployment

  • Build the project:

    npm run build
    
  • Run the production build:

    npm start
    

🚀 Happy coding!

FAQs

Package last updated on 17 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts