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.
- 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.
- Node.js and npm
- Docker and Docker Compose for containerized deployment
Create a .env
file with the following:
cp .env.example .env
make install
make dev
Build and start the containers:
make docker-build
make docker-up
To stop and remove containers:
make docker-down
make logs
To run tests with Jest and Supertest:
make test