View Code? Open in Web Editor
NEW
This project forked from walla-inc/hiring-rails
project to test proficiency for prospective hires
hiring-rails's Introduction
- Review the existing source code and take note of patterns that are in use.
- Create a migration to store a twitter handle on the user model.
- Create an API endpoint that takes the ID of the twitter_handle and returns the last 10 tweets using provided twitter gem.
- Includes rspec tests for the new requests.
- Make the number of tweets returned depend on a query param.
- Create an api to return all twitter handles and the number of times we've fetched their data.
- Create your user via Rails console
User.create(email: '[email protected]', password: 'test', password_confirmation: 'test', first_name: 'Test', last_name: 'User')
- Test authentication via curl
curl -X POST "http://localhost:3000/login" -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' -d "user[email][email protected]&user[password]=test"
- Response Authorization header will include JWT token. For example:
Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwic2NwIjoidX
hiring-rails's People
Contributors
Watchers