User Insights Web Application
This is a web application that provides insights into user data. It consists of a Node.js backend service and a simple frontend.
Docker installed on your machine
To run the web application, follow these steps:
-
Clone this repository to your local machine:
git clone git@github.com:Mina-Sayed/user-insights-backend-Nexus.git
-
Navigate to the project directory:
cd user-insights-backend-Nexus
-
Build the Docker images for both the backend and frontend:
docker-compose build
-
Run the Docker containers for both the backend and frontend:
docker-compose up -d
The web application should now be running. You can access it at http://localhost.
The backend service provides the following API endpoint:
GET /api/users: Fetches user data with optional filters for name and active status.
Example Usage:
-
Fetch all users:
curl http://localhost/api/users
-
Fetch users with a specific name (e.g., "John"):
curl http://localhost/api/users?name=John
-
Fetch active users:
curl http://localhost/api/users?active=true