This is a basic Ruby on Rails app that runs within docker-compose, similar to our real working environment.
Please use the following workflow:
- clone this repository
- checkout a new branch for your work
- Complete the tasks
- make git commits to record your progress
- push your branch and open a pull request
- Make sure you run the following commands in your rails project:
bundle install
bin/rails db:create db:migrate db:seedTo start the rails application so you can visit it in your web browser at http://localhost:3000 run the following command:
bin/devNOTE: The username/password for signing in can be found in db/seeds.rb
Currently, after signing in, the User will see a "dashboard" screen. Update that dashboard so it shows their email, created at, and updated at instead of "...".
Currently, the member dashboard only shows the time of their most recent login. Make the necessary changes to the database, models, controllers, and views so we can store and display when every login happens for a user.
- Display a list of all the categories each product belongs to, and link to them.
- If the current user is signed in, show a heart icon which the user can click to "heart" the product, and click again to remove the product from their favorites.
- On the "Members Dashboard" view, add a list of links to their favorite products.
- On the Category page, only show "active" products.
- If a product with "is_active=false" is requested, return a 404 response.
- Remove "is_active=false" products from the Members Dashboard "favorite products" list.
This is very simple web application.
- Ruby on Rails
- SQLite
- TailwindCSS
git clone git@seoradar:interview-example.git
cd interview-example/
./setup-workstation
docker-compose upThe world is yours.