app for searching film times
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
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
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/
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