Interview - Backend Engineering Take Home Task
Login with Github​
- Register a Github Oauth Application
- Get Client ID and Client Secret
- Create a simple Rails or Sinatra application with database configuration. (Sqlite/Postgres/MySQL)
- Implement a feature to login with Github (Oauth). Please do not use any Oauth gems, Github's API is well-documented and use their API. You may use HTTP clients like HTTParty https://github.com/jnunemaker/httparty, HTTP Ruby client or Ruby's default HTTP client etc.
- Get the user information after successful login, and save them on database.
Bonus points​
- Create a github repo to host simple index.html file.
- Setup github pages to serve that html using something like http:://username.github.io/your-repo-name, where your-repo-name is the name of the repo you have created to host that html page.
- With the Access Token you have received from github, get the repo above your-repo-name, and add this snippet to index.html 's head.
<script src="https://www.powr.io/powr.js"></script>
- Also add this snipped within the body (top / bottom).
<div class="powr-form-builder" id="unique-uuid"></div>
- Please email [email protected] the link to your repos and index.html file.
Note
- Please write a good documentation about different process you have done on README.md file. Also please make sure to git commit every steps of the way, with good commit messages.