Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gets info from route #2

Open
kangkyu opened this issue Aug 14, 2016 · 10 comments
Open

gets info from route #2

kangkyu opened this issue Aug 14, 2016 · 10 comments
Assignees

Comments

@kangkyu
Copy link
Member

kangkyu commented Aug 14, 2016

open localhost:4567/tt0078346 then the page says "Superman"

@thomasjinlo
Copy link
Contributor

Does anyone need the API key for TMDb?

@kangkyu
Copy link
Member Author

kangkyu commented Aug 15, 2016

don't we? it's in your code, as ENV and you need yours if run it locally for development

@thomasjinlo
Copy link
Contributor

I meant I can provide my API key if people don't want to sign up for a new one

@kangkyu
Copy link
Member Author

kangkyu commented Aug 15, 2016

But still, it's public repo so we better not include your own API key to readme or in the code. Still we need some instruction how to develop and have value on ENV['TMDB_API_KEY'] I think...

@server-monitor
Copy link

API keys are usually stored on some env manager. Each developer usually has
his own set of keys then the keys are loaded using env manager. I usually
use Figaro in Rails, then my keys and other data I don't want committed to
the repo are stored in config/application.yml

On Sun, Aug 14, 2016 at 10:38 PM, Kang-Kyu Lee [email protected]
wrote:

But still, it's public repo so we better not include your own API key to
readme or in the code. Still we need some instruction how to develop and
have value on ENV['TMDB_API_KEY'] I think...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARG9m6DfQv5_nIKeizp9Xv9cND2d2jzvks5qf_tXgaJpZM4Jj0xV
.

@kangkyu
Copy link
Member Author

kangkyu commented Aug 15, 2016

yes that's better, then you can do that in your commit of this PR #14

@server-monitor
Copy link

I'm going to do some research first on how to integrate Figaro into Sinatra. It shouldn't be too bad.

@kangkyu
Copy link
Member Author

kangkyu commented Aug 15, 2016

Did you close this issue because we're not implementing this any more @btmash ? Come to our slack chat https://laruby.slack.com/messages/eastside_study_group/

@kangkyu
Copy link
Member Author

kangkyu commented Aug 15, 2016

@thomasjinlo @server-monitor now I see there's open issue #11 and we better add dotenv (or figaro) as a separate PR. Anyways we can finish this issue first without it

@server-monitor
Copy link

I did a little research last night and it seems dotenv is easier to integrate with Sinatra than Figaro so we'll go with dotenv if there are no objectsions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants