Skip to content

danielfcollier/lab-domain-visitors-counter

Repository files navigation

Domain Visitors Counter

Tests

After running a specific solution, go to the project root directory and run:

python test

OR, on Linux/Unix systems:

make test-assertion

Golang Solution

Go to the project directory with:

cd golang-solution

Run the program:

go run main.go

It will generate an ouptput.csv file in the home directory.

Run with Docker:

In the project root directory, run:

docker build -t golang-solution -f Dockerfile.Golang .
docker create --name solution golang-solution
docker cp solution:/app/data/output.csv ${PWD}
docker rm -f solution
docker build -t tester -f Dockerfile.Tester .
docker run tester

OR, on Linux/Unix systems:

make docker-go

Python Solution

Go to the project directory with:

cd python-solution

Run the program:

python main.py

It will generate an ouptput.csv file in the home directory.

Run with Docker:

In the project root directory, run:

docker build -t python-solution -f Dockerfile.Python .
docker create --name solution python-solution
docker cp solution:/app/data/output.csv ${PWD}
docker rm -f solution
docker build -t tester -f Dockerfile.Tester .
docker run tester

OR, on Linux/Unix systems:

make docker-py

JavaScript Solution

Go to the project directory with:

cd javascript-solution

And, install the npm packages:

npm install

Then, run the program:

npm start

It will generate an ouptput.csv file in the home directory.

Run with Docker:

In the project root directory, run:

docker build -t javascript-solution -f Dockerfile.JavaScript .
docker create --name solution javascript-solution
docker cp solution:/app/data/output.csv ${PWD}
docker rm -f solution
docker build -t tester -f Dockerfile.Tester .
docker run tester

OR, on Linux/Unix systems:

make docker-py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published