Coder Social home page Coder Social logo

thrifty-frontend's Introduction

README - Thrifty.

Frontend repository
Backend repository

About the Project
Thrifty is a hub for all the the best thriftshops in NYC. The goal is to provide a center for shopping thriftstores online. Imagine a single place in which you can shop from all your favorite thrift stores. Whether it be Beacon's Closet in Williamsburg or Plato's Closet in Manhattan, we got you covered. Within the site, you can shop according to store or just any item you like. Your cart can consist of items from all sorts of different Thrift Stores and you can still place only one order to purchase from all different stores.

Built with:
Backend:

  • Ruby on Rails Framework (Backend API)
  • PostGreSQL Database

Frontend:

  • Javascript
  • Jquery
  • HTML/CSS
  • Bootstrap

Frontend README

JS Classes
Within the front end repository, there are .js files inside the src directory. Each class has a responsibility in order to try and organize up the functions into Class Static Methods.

Each class name and their responsibility is as follows:

Class Names Responsibility
User
  • retrieve information about the user object in the database
  • handle the cookie on the frontend
Store
  • retrieve a list of stores and information about each store from the backend
Item
  • retrieve a list of items based on the parameter passed into its method
  • make a container element and append it to the DOM for each item
Cart
  • retrieve a list of items from users cart from the backend
  • make a container element and append it to the specific cart modal for each item
Session
  • handles the cookie when a user tries to log in or out
Modals
  • makes and appends modals to the DOM for other methods to be able to append to this modal
  • adding listeners to certain buttons to make the modals more responsive
Showpage
  • clears the DOM and handles the logic on which elements to append to the DOM
  • also in charge of activating the hidden modals when needed

Bootstrap:
Bootstrap was used and it is included in index.html. In the head you will find the link and scripts that link bootstrap into the project.

Modals:
The modals are functioning via HTML attribute tags.
JQuery is also used to show/hide the modals from javascript.
$('myModal').modal('show') and $('myModal').modal('hide')


Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.


MIT License

Copyright (c) 2021 Arzy The Arzinator

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

thrifty-frontend's People

Contributors

geraldarzy 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.