Skip to content

jaykibi/pixter

Repository files navigation

README

Howdy All! Please feel free to clone this repo and do whatever you want with it!

Demo the website here
Watch a video demo here

Currently, users on my live app are able to create an account and upload (ADD) pictures, which are then displayed on the homepage as clickable images.

**

Working Updates:

AS OF 9/17/20: New video uploaded to link above, currently working on integrating STRIPE with app

AS OF 9/13/20: Front end updated, looks more modern now and now gives validated user option to delete photo straight from index page. (new demo and code video coming soon)

AS OF 9/10/20: Added SEARCH functionality to app. Users can now search for keywords and be displayed a resulting page if user's query resembled items in a picture's caption field.

AS OF 9/7/20: Added DELETE functionality to app. Users are now able to delete photos that they themselves have uploaded to the app.

**

Users are currently required to sign up in order to upload an image.

Alt Text

Alt Text

I used Ruby on Rails MVC, PostGreSQL, Heroku for hosting and AWS S3 to store images.

Feel free to fork this repo and do whatever you please with it :)

Important specs:

  • Ruby version 2.7.1

  • Rails 6 MVC

    • Click here to see how I have my Rails development environment set up.
  • PostGreSQL database is used for this project, so make sure you download and install PostGreSQL on your machine.

  • In order to initialize your database, make sure to pull the code down and run these in terminal:

    • $ rake db:create
    • $ rake db:migrate

This will create the database and will run the migrations needed in order for them to function as expected.

  • For storage, in order to keep it simple and use the development environment to store the images, comment out line 8 (storage :fog) app/uploaders/image_uploader.rb. Make sure the line that says "storage :file" is NOT commented out for this to work.

  • Otherwise you can set up an Amazon AWS S3 bucket to store the image in the cloud. I have everything already set up so all you would need to do, is create the AWS S3 bucket and create an AWS ACCESS and AWS SECRET KEY. Then you would run this command in terminal:

    • $ bundle exec figaro install

This command will create a file located at config/application.yml

In this file you put these items:

AWS_ACCESS_KEY: "insert access key"
AWS_SECRET_KEY: "insert secret key"
AWS_BUCKET: "insert name of bucket"

Make sure to insert your specific access and secret key where it says to. Also insert the name of your S3 bucket, keep in mind this name must be the exact same as you have it on AWS, it is CASE SENSITIVE.

Once you complete all these steps you should be able to upload images in the same fashion, however the images will now be stored in the AWS cloud.

Enjoy! :)

About

2021 rails apprenticeship submission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published