GithubHelp home page GithubHelp logo

appreciationapp's Introduction

Project 2 - Appreciation App

Gratitude on the Go!

Here is the link to use the app: https://sei01-appreciationapp.herokuapp.com/


Here are the features of the Appreciation App

Technologies used:

  • Ruby
  • Sinatra
  • Postgresql
  • Heroku
  • HTML/CSS/Javascript

While signed out

  • Users can sign in.
  • They can view wall posts, but cannot add posts to the wall until signed in.

When signed in

  • Users can view public wall posts by themselves/other users that convey gratitude to each other.
  • These "posts" take the form of text and images.
  • Users can comment on wall posts.

Challenges faced, and how I tackled them:

  • Timestamps and adapting them to erb/html. The postgresql docs, assistance from instructor and classes helped with translating default timestamps to something more readable (e.g. DateTime.parse(post["timestamp"]).strftime("%Y-%m-%d %H:%M"))
  • Posting comments caused fresh wall posts to be created. I implemented an if-statement to differentiate when a user is posting a comment or a wall post.
  • Initially all comments would get posted to all posts. I solved this by implementing an erb if-statement that checked a condition that the wall post's ID matched the comments post_ID.

Other ways I solved for general problems were:

  • Getting help from wiser teachers
  • Googling
  • W3Schools
  • Postgresql/Sinatra/Ruby documentation

appreciationapp's People

Contributors

sayf-t avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.