A web application for buying and selling iPhones and Macbooks.
- To begin, clone this repo to your local machine using
https://github.com/hemeshvpatel/AppleXchange.git
- Open the file using your favorite editor and run
bundle install
in your terminal. - Then, run
rake db:migrate
followed byrake db:seed
in your terminal. - Finally, run
rails s
in your terminal and open the localhost on your browser.
- AppleXchange is a simple web app that lets you sell and buy iPhones and MacBooks.
- To get started, click register to create a new account, then log in.
- After logging in, the navigation bar at the top can be used to return to the home page at any time. You can also create a listing, view and edit your profile, and log out.
- The home page lists all of the Apple products that the web app allows for trade. If you don't own one of these products, you can't sell it. Sorry! You can however still buy from other people.
- You can click on one of the products on the front page to take a look at the product information, as well as all the listings other people have put up for sale of that product.
- Click on one of these listings to view the listing information which includes the product's specs, condition, seller, and the listing price.
- From here you have the option to buy the listing if you're interested and have enough money. If you choose to do so, both you and the seller's account balances will be updated based on the transaction, and both will now have a record of the exchange.
- If you would like to create a listing, simply click on 'Create a Listing' on the navigation bar, which will give you a choice between listing an iPhone or Macbook. This will take you to a form to fill out to put your device up for sale.
- Your profile page displays your account information as well as all your transactions and listings.
- If you want add money to your account, simply go to your profile and click on 'Add to Balance'.
- You are able to leave reviews on products on the product info page.
- You are also able to comment on listings.
- After making a transaction, there will be a 'like' button on the exchange page. If you think the transaction went smoothly, you can click that button and will increase the other user's number of likes, which also increases their approval rating!
- Created by Jason Le and Hamesh Patel as their second project at Flatiron School's Software Engineering bootcamp in Austin, with a goal of demonstrating an understanding of MVC design patterns, RESTful routes, and CRUD functions.
- Project was created using Ruby on Rails, ActiveRecord, and some basic bootstrap.
- Credits to DeviantArt user pichu90 for the profile image, and the Pokemon Wiki for the pikachu gif.