Home - Aishaa-Kulkarni/Photosite GitHub Wiki

The project deployed on AWS URL: http://44.199.113.63:3000/user/index

SECTION 1: Intro and Purpose

This project describes the MVC (model-view-controller) based photo-sharing website using Ruby-on-Rails with SQLite database and deploying into an Amazon EC2 instance along with hosting the images on Amazon S3. This website provides photos of users with their full names and date on which the photo was posted. The website also provides comments on photos with the date and name of the user who posted that comment. With the help of database connectivity, the data is fetched from the database and posted on the website. It is an easily navigable website.

Steps followed:

  1. Create a Photo-site Application using RubyMineIDE

  2. Create and use Docker container

  3. Deploy the Photo-site Application to the docker container

  4. Deploy the application using the Docker Container to an EC2 (AWS) instance

I have created 3 models such as User, Photo and Comment. This will generate migration files for each model. The migration file is used to create tables in the database. Also, we can load the data using the migration file. Then I have created two controllers they are photo_controller and user_controller. They act as mediators between models and views. The controllers will automatically create the views where we create the html.erb file that will implement the two URLs as shown below.

Following URLs are created:

localhost:3000/user/index - This page displays all the users

localhost:3000/photo/id - This page navigates and displays the photos of the selected user and along with the comments The below link is displaying the screenshots of the output of the application https://github.com/Aishaa-Kulkarni/Photosite/wiki/Ruby-on-Rails-application

The YouTube URL for this is https://www.youtube.com/watch?v=2fDbZ8XC9O8

Link for creating Docker locally: https://github.com/Aishaa-Kulkarni/Photosite/wiki/Creating-Docker-Locally

The YouTube URL for this is https://www.youtube.com/watch?v=i6khn74hV-o&ab_channel=AishwaryaKulkarni

LINK that shows the creation of the EC2 configured instance: https://github.com/Aishaa-Kulkarni/Photosite/wiki/EC2-Instance-Creation

Hosting photos on S3 bucket link: https://github.com/Aishaa-Kulkarni/Photosite/wiki/Hosting-Photos-on-S3

The YouTube URL for this is : https://www.youtube.com/watch?v=SWxN1NlK_bc&ab_channel=AishwaryaKulkarni