Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.09 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.09 KB

kinotimes

app for searching film times

To run in production mode:

  • docker-compose up -d

first time:

  • initialize data: docker exec KINOTIMES_BACKEND npm run initialData
docker exec app_backend_1 node core/getFilmsJob.js --days 5
docker exec app_backend_1 node core/getFilmsJob.js --genUpdate
docker exec app_backend_1 node core/getFilmsJob.js --imdb
docker exec app_backend_1 node core/getFilmsJob.js --images

env vars

export KT_MONGO_HOST=localhost:27017 export KT_MONGO_DB=films export TMDB_TOKEN= export OMDB_APIKEY= export REACT_APP_KT_URL=http://localhost export REACT_APP_KT_BACKEND_PORT=3333 export REACT_APP_KT_PORT=3000

build local docker images

sudo docker build -f backend/Dockerfile.backend -t kinotimes_backend backend/

frontend npm run build sudo docker build -f frontend/Dockerfile.web -t kinotimes_web frontend/

To run in dev mode:

  • npm install -g create-react-app
  • set appropriate env vars (see above)
  • in backend & frontend: npm install

In different terminals:

  • backend: npm run start-dev
  • frontend: npm run start-dev
  • frontend: npm test