Skip to content

YashasG98/Buy-n-sell

Repository files navigation

Buy n' Sell

Installation steps

Installing MySQL

sudo apt install mysql-server
sudo mysql_secure_installation

Installing Ruby on Rails using rvm (ruby version manager)

First, install curl and gnupg

sudo apt install curl
sudo apt install gnupg2

Now, run these commands to install rvm

curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -  
curl -sSL https://get.rvm.io | bash -s stable

Important : For RVM to work properly, you have to check the 'Run command as login shell' checkbox on the Title and Command tab of the terminal's Edit ▸ Profile Preferences menu dialog, in case the menu is missing right-click the terminal app and navigate Profiles ▸ Profile Preferences.

Installing rails 5.2.2 with ruby 2.6.1

rvm install 2.6.1
rvm use 2.6.1 --default
gem install bundler
gem install rails -v 5.2.2

Others

Install mysql gem and the libmysql-dev library

sudo apt install libmysqld-dev
gem install mysql2

Note: For some of the js gems

sudo apt install nodejs

How to run the project

Run the following code in your terminal to download the project.

git clone https://github.com/YashasG98/Buy-n-sell.git
cd Buy-n-sell/

Change the password (replace 'Game_server') at line 17 of config/database.yml to your local MySQL password. Run the following command inside the home folder and open http://localhost:3000/.

bundle install
rails db:create
rails db:migrate
rails server

List of all implemented features

  • User signup, login, logout
  • User can add products to sell
  • Shop from where user can buy objects
  • User can check products sold by him
  • User can check products bought by him
  • Admin can credit wallets
  • Appropriate error and success alerts have been added everywhere

List of non-implemented/planned features

  • User profile page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published