Open luisnomad opened 6 years ago
Ah, yeah, so truthfully I hadn't anticipated anyone trying to run it locally! The code is open-sourced for folks to read, but I assumed it'd be too much trouble for anyone to run.
You'll need a bunch of stuff, I'm afraid :/
Then, you'll need to create two config files:
// server/config/aws.json
{
"accessKeyId": "XXX",
"secretAccessKey": "XXX",
"region": "XXX"
}
// server/config/private.json
{
"PORT": 3005, // or whatever
"AUTH_TOKEN_KEY": "some-key", // doesn't matter, just a string
"JWT_SECRET": "generated-uuid", // generate a UUID, doesn't matter what
"MONGO_URL": "mongodb://path-to-your-db",
"GOOGLE_CLIENT_ID": "XXX",
"GOOGLE_CLIENT_SECRET": "XXX",
"GOOGLE_CALLBACK_URL": "http://localhost:port/auth/google/callback"
}
Looking at the code now, I think you'll run into an issue with imgix... the URLs are just https://tello.imgix.net/image.jpg
, which works because my AWS account and imgix are linked... yours won't be. So you'll need to update the tello.imgix.net
references. Alternativelky you could just use your AWS url if you don't care about the perf wins of cropping TV Maze images.
I know this is a fair bit of trouble! If you can update the https://tello.imgix.net
part to be a config var, maybe IMAGE_URL_PREFIX
or something? That'd make it easier.
Lemme know if this works, or if you run into more issues!
Thanks a lot! I'll try that!
Hey Josh! First of all, thanks a lot for sharing this project, it really looks interesting. I was hoping to give it a run, but when starting the server I get this:
Since there's no installation guide, I assume there's a step/pre-requisite I am missing, right?
Thanks again!