flickr-api-practice

Stars
1
Committers
1

README

Purpose

Part of TheOdinProject - Working with external APIs and learning to deal with external APIs. Documentation obtained from Flickr API documentation.

What it looks like

Getting started

Prereqs

  • Ruby 2.6.2
  • Rails 5.2.3
  • Postgresql
  • docker / docker-compose

Additional Tools

  • dotenv
  • flickraw

Add your flickr api key

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

Running locally

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