Live Cursors is a simple web application that allows you to share your cursors with others.
Before you begin, ensure you have the following installed:
-
Create an account on API Ninjas and get your API key.
-
Clone the repository:
git clone https://github.com/pauloRohling/live-cursors.git
- Navigate to the project directory:
cd live-cursors
- Build the Docker image:
docker build -t live-cursors .
- Run the Docker container:
docker run --rm -e API_KEY=<YOUR_API_KEY> -p 8080:8080 live-cursors
- Navigate to the web project directory:
cd web
- Install the dependencies:
npm install
- Start the development server:
npm start
- Open your web browser and navigate to
http://localhost:4200
.
Variable | Description | Default Value | Required |
---|---|---|---|
SERVER_PORT |
Port to listen on | 8080 | false |
API_URL |
URL of the API | https://api.api-ninjas.com/v1/randomuser | false |
API_KEY |
API key for the API | - | true |
HTTP_MAX_RETRY |
Maximum number of retries for HTTP requests | 3 | false |
HTTP_MAX_RETRY_TIMEOUT |
Maximum timeout for HTTP requests | 5s | false |
HTTP_MIN_RETRY_TIMEOUT |
Minimum timeout for HTTP requests | 1s | false |
Live Cursors is released under the MIT License. See the LICENSE file for more information.