Skip to content

lillysilly3/friend-list-app

Repository files navigation

Friend List App

A Ruby on Rails web application for managing your personal friend list. Users can sign up, log in, and manage their own contacts — each user only sees and controls their own friends.

Live app: https://friend-list-app-0a3b2c1a2f33.herokuapp.com

Features

  • User authentication with Devise (sign up, log in, sign out, delete account)
  • Add, show, edit, and delete friends
  • Each user has their own private, secured friends' list
  • Authorization — users can only view and edit their own friends
  • Responsive UI with Bootstrap

What I Explored

This is my first Ruby on Rails project. Building it taught me:

  • How Rails MVC architecture works (models, views, controllers)
  • Setting up user authentication with Devise
  • Creating and running database migrations
  • Building CRUD functionality with Rails scaffolding
  • Associating users with their own data using model associations
  • Securing authorization so users can only view and edit their own friends
  • Writing model and controller tests
  • Using Bootstrap for a responsive UI
  • Deployment to Heroku with PostgreSQL

Tech Stack

  • Ruby on Rails 8.1
  • PostgreSQL
  • Devise
  • Hotwire (Turbo + Stimulus)
  • Bootstrap

Prerequisites

  • Ruby 3.x+
  • Ruby on Rails 8.1
  • PostgreSQL
  • Bundler (gem install bundler)

Getting Started

Clone the repo:

git clone git@github.com:lillysilly3/friend_list_app.git
cd friend_list_app

Install dependencies:

bundle install

Make sure PostgreSQL is running, then set up the database:

rails db:create
rails db:migrate

Start the server:

rails server

Then open http://localhost:3000 in your browser.

Future Ideas

  • Add a notes/bio field for each friend
  • Birthday reminders
  • Search/filter friends by name
  • Card view instead of a table

Acknowledgments

This project was built following the Ruby on Rails tutorial by Codemy.com on YouTube.

About

A Ruby on Rails friend list app with user authentication, allowing users to manage their personal list of friends. and their account details.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors