Skip to content

ok2ju/tmdb-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tmdb-worker

TMDB database replenishment worker

Running

Pull mongo docker image:

docker pull mongo

Start mongoDB:

make run-mongo

or

docker run --name mongodb -p 27017:27017 -d mongo

Install service dependencies:

yarn

Create .env file using .env.example. Add your TMDB API_KEY into .env.

Start service:

yarn start

Start service as docker container:

make run-worker -e TMDB_API_KEY=yourapikey

TODOs

  1. Error handling;
  2. Loggin;
  3. Docker image;
  4. TravisCI;
  5. update README;
  6. Move logic into DB connection callback;
  7. Code linting (standard);
  8. Move code into separate files.

!

docker logs -f tmdb-worker
docker exec -it tmdb-worker bash
cat /etc/hosts
env