sudo apt install mysql-server
sudo mysql_secure_installation
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.
rvm install 2.6.1
rvm use 2.6.1 --default
gem install bundler
gem install rails -v 5.2.2
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
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
- 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
- User profile page