Skip to content

hrushikeshj/club_recruitment

Repository files navigation

Installing

Install ruby, yarn, nodejs and MySql

Clone the repo

git clone https://hrushikeshj/club_recruitment 

cd into the folder club_recruitment

Install rails

bundle

Install npm package

yarn install

Update the database username and password

File path: config/database.yml

...
...
default: &default
  adapter: mysql2
  encoding: utf8mb4
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  username: <db_username>
  password: <db_password>
  socket: /var/run/mysqld/mysqld.sock

development:
  <<: *default
  database: club_recruitment_development
...
...

Replace <db_username> and <db_password>.

Migrate

rails db:create
rails db:migrate

Run rails

rails s

If everything went right you can vist the app at http://localhost:3000