FAQ

  1. Where is the code?

    https://github.com/JakubKoralewski/lets-watch-it-together/

  2. What technology did you use?

    RFC-1 Technology choice

    https://github.com/JakubKoralewski/lets-watch-it-together/blob/main/Dockerfile

  3. How to install and develop locally?

    https://github.com/JakubKoralewski/lets-watch-it-together/#development

  4. Ok But I get error INSERT GENERIC ERROR HERE:

    1. Do you have Nodejs and Docker installed?

    2. Did you run npm install?

    3. Did you set the environment variables?

      1. What environment variables?

        https://github.com/JakubKoralewski/lets-watch-it-together/#contributing

        https://github.com/JakubKoralewski/lets-watch-it-together/blob/main/.env.example

      2. Ok but how do I get TMDB_API_KEY?

        You create TMDB account and copy from settings

      3. Ok but how do I get GITHUB_ID and GITHUB_SECRET?

        GITHUB_ID=0a9f0adde26f34b5383d
        GITHUB_SECRET=93302a9ed6d083981b44d01cfbd4796870e6ae87
        

      At the end you should have a .env file with the following:

      PORT=3000
      
      DATABASE_URL=postgresql://postgres:postgres-dev@localhost:5432/db
      REDIS_URL=redis://localhost:6379
      
      SECRET=ABCDEFG
      GITHUB_ID=0a9f0adde26f34b5383d
      GITHUB_SECRET=93302a9ed6d083981b44d01cfbd4796870e6ae87
      
      TMDB_API_KEY=YOUR_API_KEY
      
    4. Did you run docker-compose up before npm run dev?

    5. Did you run migrations on your database?

    6. Did you make sure the database was available (docker-compose up) while you ran those migrations?

  5. How to deploy?

    We're using Docker, so any way to run a Docker container is good. We use Heroku to automatically deploy on each push to main so you can do too.

    Click this guy:

  6. But I see no users when I search:

    It's an empty database. If you want dummy users you can run this: npm run dev-seed . Make sure the server is not running while you do as that seems to break authorization resulting in you being able to log in as a different user...

  7. The app is really slow:

    I know not only is it written in Node.js but also it's being compiled as you request pages, that's normal. It should be a lot faster in production, but not amazingly so.

  8. TypeScript is barking at me

    Write JavaScript I think it should work too.

  9. How to add styles

    See Material UI docs or the code

  10. How to send stuff to database

    See Prisma2 migrate or prisma2 client docs or just look at the code