Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.16 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.16 KB

Location stream - NATS WS

A Node.js backend for a location-sharing application using Express, MongoDB, NATS messaging, and JWT authentication. This application provides endpoints for user authentication, ride orders, and location updates.

Features

  • JWT Authentication: Secure endpoints using JSON Web Tokens.
  • NATS Messaging: Real-time communication for ride orders and location updates.
  • MongoDB: Store and track rider location details.
  • Dockerized Setup: Easily deployable with Docker and Docker Compose.

Prerequisites

  • Node.js and npm
  • Docker and Docker Compose for containerized deployment

Setup

1. Environment Configuration

Create a .env file with the following:

cp .env.example .env

2. Install Dependencies

make install

3. Run Locally (Development Mode)

make dev

4. Docker Deployment

Build and start the containers:

make docker-build
make docker-up

To stop and remove containers:

make docker-down

5. View Logs

make logs

Running Tests

To run tests with Jest and Supertest:

make test