Skip to content

sharshi/Web-Hunt

Repository files navigation

Web Hunt

Introduction

Web Hunt, is a single page web application inspired by Product Hunt. It allow creators to share their products and receive feedback from developers and tech enthusiasts.

Live site: https://webhunt.dev

Features

  • Ability to upload your favorite coding tools using a multi-step form
  • View popular Tech tools uploaded by fellow developers
  • View user profiles to see their activity
  • Users can Upvote their favorite tools
  • Live preview shows what your product will look like as you are entering the product data
  • Custom vanity urls based on your username

Live preview

The preview component shown below is the same as the one on the home feed and user profiles.

gif

Vanity urls

Vanity urls use your username as your handle. webhunt.dev/@sharshi

  # config/routes.rb
  get '@:username', to: 'api/users#redirect_to_profile', defaults: { format: :json } 

  # app/controllers/api/users_controller.rb
  def redirect_to_profile
    @user = User.with_attached_profile_picture.find_by(username: params[:username])
    if @user
      redirect_to "/#/@#{params[:username]}"
    else
      render json: ['username not found'], status: 404
    end
  end

Technologies

  • React
  • Redux
  • Rails
  • Heroku
  • AWS - for image hosting
  • SCSS

Feedback

Feel free to email me or file an issue.

Acknowledgments

Todo

  • Search
  • Reviews
  • Sidebar content (featured tools etc.)