This app searches Flickr and Youtube for content based an a search term entered by a user. It is intended as a demo of techniques for building client-side apps. It uses a variety of technologies, including:
- Node for the server
- Twitter Bootstrap for the UI
- Backbone for the client
- Mocha and expect.js for tests
- Install node. You can follow the instructions here, or use
Homebrew on a Mac:
brew install node
. - Run
npm install
from the root directory of this project to load the dependencies. - Copy
server/config.js.example
toserver/config.js
and update with your API key(s) if you'd like. Currently, only the Youtube search will work without a key. - To run the development server:
node bin/dev
- Visit the app in your browser.
When the development server is running, you can run the tests here.
You will need to have RequireJS installed:
npm install -g requirejs
Then, from the root of the project, run the following commands:
r.js -o srchr.build.js
r.js -o cssIn=assets/css/srchr.css out=prod/assets/css/srchr.css
You can run the built version of the app by running:
node bin/server
- Make it possible to favorite items
- Make it possible to tag favorites
- Incorporate other content sources
- Use grunt