- Docker
-
Run MongoDB Docker Container
docker run --name mongodb -d -p 27017:27017 mongo
-
Run Dragonfly or Redis Docker Container
- To run Dragonfly:
docker run -p 6379:6379 --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly
- To run Redis:
docker run --name redis -d -p 6379:6379 redis
- To run Dragonfly:
-
Run Ad Server Change values in
ad/config/config.goto match your MongoDB and Dragonfly/Redis configurations.cd path/to/adbuild and/or run
-
Run Tracker Server Change values in
ad/config/config.goto match your MongoDBcd path/to/trackerbuild and/or run
-
Test
ad/client/main.gois a simple client to test the service. You can run it to test the endpoints.tracker/client/main.gois a simple client to test the service. You can run it to test the endpoints.
- Ensure both MongoDB and Dragonfly/Redis containers are running.
- Ensure both the ad server and tracker server are running.
- Use appropriate tools or scripts to test the endpoints and functionality of the service.