Where is the code?
What technology did you use?
https://github.com/JakubKoralewski/lets-watch-it-together/blob/main/Dockerfile
How to install and develop locally?
https://github.com/JakubKoralewski/lets-watch-it-together/#development
Ok But I get error INSERT GENERIC ERROR HERE
:
Do you have Nodejs and Docker installed?
Did you run npm install
?
Did you set the environment variables?
What environment variables?
https://github.com/JakubKoralewski/lets-watch-it-together/#contributing
https://github.com/JakubKoralewski/lets-watch-it-together/blob/main/.env.example
Ok but how do I get TMDB_API_KEY
?
You create TMDB account and copy from settings
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
Did you run docker-compose up
before npm run dev
?
Did you run migrations on your database?
Did you make sure the database was available (docker-compose up
) while you ran those migrations?
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:
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...
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.
TypeScript is barking at me
Write JavaScript I think it should work too.
How to add styles
See Material UI docs or the code
How to send stuff to database
See Prisma2 migrate or prisma2 client docs or just look at the code