- Install docker and docker-compose according to your OS;
- Clone this project to your machine.
- Enter the directory you just cloned and run
npm i
. - Now you need to start postgreSQL and RabbitMQ containers:
- Run in your terminal
docker-compose -f script/local.yml up -d
. If it succeeds you'll see done in terminal. - Run in your terminal
node script/domainFinder.js
. Wait till it finishes. - Run in your terminal
node script/domainFinderReceiver.js
. You'll see it work.
- Run in your terminal
- Results:
- Open another terminal;
- Run in terminal:
docker ps
. You are interested in container_id with name nodeapps_db_1, copy this value; - Run in terminal:
docker exec - it [container_id] bash
. Now you must be inside of postgres container; - Run
psql -U postgres
. Now you must be in postgres; - Work with table FreeDomains the way you want using postgreSQL syntax.
- Install docker and docker-compose according to your OS;
- Download file docker-compose.yml from here;
- Enter directory with this file;
- Run in terminal:
docker-compose up -d
; If this step succeeds you'll see done in terminal; - Run in terminal:
docker ps
; You are interested in container_id with image danieljust/domain-finder-v1, copy it's container_id; - Run in terminal:
docker exec -it container_id bash
.
Now you must be inside of container with path /opt/domainFinder.
If you want to look for free ru domains:
- You need to have mashape key for this api;
- If you have it use:
nano services/domainInformation_DE/fetchers.js
. Enter your API key where it is needed; - Running scripts
- You need to run sender first:
node ruZone/russianSender.js
. Wait till it finished; - Run receiver:
node ruZone/russianReceiver.js
. You'll see output in terminal; 3. Results:- Open another terminal;
- Run in terminal
docker ps
. You are interested in container_id with name nodeapps_db_1, copy this value; - Run in terminal:
docker exec - it [container_id] bash
. Now you must be inside of postgres container; - Type
psql -U postgres
. Now you must be in postgres; - Work with table RussianDomains the way you want using postgreSQL syntax;
If you want to look for other free domains with other tlds:
- Type in terminal:
node script/domainFinder.js
. Wait till it finished; - Type in terminal
node script/domainFinderReceiver.js
. You'll see output in terminal; - Results:
- Open another terminal;
- Run in terminal:
docker ps
. You are interested in container_id with name nodeapps_db_1, copy this value; - Run in terminal:
docker exec - it [container_id] bash
. Now you must be inside of postgres container; - Run
psql -U postgres
. Now you must be in postgres; - Work with table FreeDomains the way you want using postgreSQL syntax.