- yarn install
- Install Ruby and Ruby on Rails using https://www.howtoforge.com/tutorial/ubuntu-ruby-on-rails/
- sudo apt install postgresql postgresql-contrib
- gem install pg -v '1.2.3' --source 'https://rubygems.org/'
- sudo apt-get install libpq-dev (for pg gem)
- bundler install
- Open config/database.yml and setup postgresql database.
- Create a database 'youngsphere'
- ALTER USER postgres PASSWORD 'myPassword' Now, fill these values under development.
- rails db:migrate
- For peer authentication error, use https://stackoverflow.com/questions/18664074/getting-error-peer-authentication-failed-for-user-postgres-when-trying-to-ge
- Open 2 tabs: 1st tab: rails server 2nd tab: ./bin/webpack-dev-server