Giter VIP home page Giter VIP logo

kinotimes's Introduction

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

  • cd frontend
  • npm install
  • npm run build
  • sudo docker build -f Dockerfile.web -t kinotimes_web .

To run in dev mode:

  • npm install -g create-react-app
  • npm install -g nodemon
  • set appropriate env vars (see above)
    • you'll need mongo running at localhost:27017 (or maybe setup a free instance @ mlab.com)
    • if using mlab, set env vars:
      • KT_MONGO_HOST=:@.mlab.com:
      • KT_MONGO_DB=
  • in backend & frontend: npm install
  • if first time, run initialize data:
    • node backend/core/getFilmsJob.js --days 2
    • node backend/core/getFilmsJob.js --genUpdate
    • node backend/core/getFilmsJob.js --imdb
    • node backend/core/getFilmsJob.js --images

In different terminals:

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

To update dependencies

use ncu

npm i -g npm-check-updates
ncu
ncu -u
yarn install

To check js source size

use source-map-explorer

cd frontend
yarn build
npm run analyze

kinotimes's People

Contributors

dependabot[bot] avatar grandvizier avatar muhabalwan avatar polyakusha avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.