Part of TheOdinProject - Working with external APIs and learning to deal with external APIs. Documentation obtained from Flickr API documentation.
Obtain your flickr api key here Link to flickr api
Then, create a file called ".env" in your projects root directory (Dont worry, its already .gitignored) add your keys in the following format:
FLICKRAW_API_KEY=1e812e81 FLICKRAW_SHARED_SECRET=123438
git clone https://github.com/ParamagicDev/flickr-api-practice
cd flickr-api-practice
touch .env
echo "FLICKRAW_API_KEY=xyz" >> .env
echo "FLICKRAW_SHARED_SECRET=zyx" >> .env
docker-compose build
docker-compose run --rm web rails db:create
docker-compose up
# If on linux, some permission issues may arise, run:
sudo chown -R $USER:$USER .
Your server is now available @ localhost:3000 Enter in your user id or another persons and their photostream will pop up