A bare-bones Rails project for hands-on technical interviews. Opinionated in the gems and configuration to be focused on business problems rather than boilerplate and/or setup.
- SQLite3 for DB
- RSpec for testing
- FactoryBot for factories
- Faker for making quick fake data/models
- Pry for object inspection and debugging
- Timecop for time based testing
- Checkout this code.
- Install Docker Desktop
docker compose up
Open http://localhost:3000/ on your browser and a simple web page with 'Chuck's Dashboard' should appear.
docker compose exec web bash
(Opens a bash terminal in the container)bundle exec rails db:seed
(Creates 100 facts)
The PrimeRevenue TEAM will pair with you and have you implement a feature on this simple API.
We have created a simple Vue app, which we would like you to make some changes to. You will be working in the following files:
/public/vue-app.js
/public/vue.html
Navigate in your browser to: 'http://localhost:9292/vue.html' in order to see the Vue app.
When the user clicks the button, the app should fetch a random quote from the API, and display it just below the button.
You may use any library you wish to perform the api call: axios
, fetch
, etc. Feel free to google at will.
- Button is clicked, a fact displays.
- Subsequent clicks keep adding facts to the list.
- No duplicate facts are ever displayed.
- Make each fact look like a social media post, displaying some of the other fields which are returned by the API
- Add an X to each fact, which will remove the fact from the list when clicked
As Vue will be more of a minor focus for your position, just get as much done as you can in the time alloted to you by the interviewer. It is okay if you do not finish everything.