Skip to content

Commit 968d230

Browse files
authored
Merge pull request #6 from topcoder-platform/feat/challenge-api-integration
Challenge api integration
2 parents ed8080c + 29d6812 commit 968d230

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2606
-14659
lines changed

.env

Lines changed: 0 additions & 21 deletions
This file was deleted.

.env.example

Lines changed: 61 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,75 @@
1-
# KAFKA_BROKERS=localhost:29092
2-
# SCHEMA_REGISTRY_URL=http://localhost:8081
3-
# KAFKA_CLIENT_ID=autopilot-service
4-
# KAFKA_MAX_RETRY_TIME=30000
5-
# KAFKA_INITIAL_RETRY_TIME=300
6-
# KAFKA_RETRIES=5
1+
# .env.example
2+
# This file contains all the environment variables used by the application.
3+
# Copy this file to .env and fill in the appropriate values.
74

5+
# -------------------------------------
6+
# App Configuration
7+
# -------------------------------------
8+
# The environment the application is running in (development, production, test)
89
NODE_ENV=development
10+
# The port the application will run on
911
PORT=3000
12+
# The level of logging to display (error, warn, info, debug, verbose)
1013
LOG_LEVEL=info
14+
# The directory to store log files
1115
LOG_DIR=logs
1216

17+
# -------------------------------------
1318
# Kafka Configuration
19+
# -------------------------------------
20+
# Comma-separated list of Kafka broker hosts
1421
KAFKA_BROKERS=localhost:9092
22+
# A unique identifier for this Kafka client instance
1523
KAFKA_CLIENT_ID=autopilot-service
24+
# The maximum time (in ms) to retry a failed Kafka operation
1625
KAFKA_MAX_RETRY_TIME=30000
26+
# The initial time (in ms) to wait before the first retry
1727
KAFKA_INITIAL_RETRY_TIME=300
28+
# The maximum number of retries for a failed Kafka operation
1829
KAFKA_RETRIES=5
1930

31+
# -------------------------------------
2032
# Schema Registry Configuration
21-
SCHEMA_REGISTRY_URL=http://localhost:8081
33+
# -------------------------------------
34+
# The URL for the Confluent Schema Registry
35+
SCHEMA_REGISTRY_URL=http://localhost:8081
36+
# Optional username for Schema Registry basic authentication
37+
SCHEMA_REGISTRY_USER=
38+
# Optional password for Schema Registry basic authentication
39+
SCHEMA_REGISTRY_PASSWORD=
40+
41+
# -------------------------------------
42+
# Challenge API Configuration
43+
# -------------------------------------
44+
# The base URL for the Topcoder Challenge API v6
45+
CHALLENGE_API_URL=https://api.topcoder-dev.com/v6
46+
# Removed static M2M token - now using Auth0 service
47+
# The number of retry attempts for failed Challenge API calls
48+
CHALLENGE_API_RETRY_ATTEMPTS=3
49+
# The initial delay (in ms) for the first retry attempt
50+
CHALLENGE_API_RETRY_DELAY=1000
51+
52+
# -------------------------------------
53+
# Auth0 Configuration
54+
# -------------------------------------
55+
# The Auth0 URL for token generation (full OAuth endpoint)
56+
AUTH0_URL=<your-auth0-url>
57+
# Client ID for M2M application
58+
AUTH0_CLIENT_ID=<your-auth0-client-id>
59+
# Client secret for M2M application
60+
AUTH0_CLIENT_SECRET=<your-auth0-client-secret>
61+
# The Auth0 domain
62+
AUTH0_DOMAIN=<your-auth0-domain>
63+
# The audience/API identifier for the Challenge API
64+
AUTH0_AUDIENCE=<your-auth0-audience>
65+
# Auth0 proxy server URL (optional)
66+
AUTH0_PROXY_SEREVR_URL=
67+
68+
# -------------------------------------
69+
# Sync Service Configuration
70+
# -------------------------------------
71+
# The cron schedule for the challenge synchronization service.
72+
# Uses standard cron syntax. Defaults to every 5 minutes.
73+
# Example: '0 */1 * * *' would run it every hour.
74+
SYNC_CRON_SCHEDULE='*/5 * * * *'
75+

DEPLOY.md

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)