Skip to content

jeff-knurek/kinotimes

 
 

Repository files navigation

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

About

app for searching film times

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.1%
  • CSS 8.0%
  • HTML 2.2%
  • Shell 1.7%