-
Build Image
docker build -f Dockerfile.dev -t dsinecos/drone-location-tracker .
-
Run container
docker run -it -p 5000:5000 -p 6000:6000/udp -v /usr/app/node_modules -v $(pwd):/usr/app --name=drone-location-tracker dsinecos/drone-location-tracker
-
Run a shell process inside the container
- Open another terminal
docker exec -it drone-location-tracker sh
-
Run container using the command in the earlier section (
docker run ...
) -
Go to
localhost:5000
on your browser -
Open another terminal
docker exec -it drone-location-tracker yarn run simulation
-
Run container using the command in the earlier section (
docker run ...
) -
docker exec -it drone-location-tracker yarn run test
Tool | Objective |
---|---|
Git (CLI) GitKraken (GUI) |
Version control |
Yarn | Dependency management |
Docker | Containerization |
ESLint | Code Linting |
JSDoc | Documentation |
Testing | |
Mocha | Test runner |
Chai | Assertion library |
Sinon | For mocking and stubbing |
Nodemon | Auto-restarting app |
Debug | Logging during development |
Dotenv | Setup environment variables |