The primary dependencies:
Potentially useful version info you could have found in the repo:
Use your favorite Ruby version manager. I prefer RVM:
rvm install ruby-2.6.3
Use your system's package manager. For Arch Linux, use pacman:
pacman -S postgresql
If you need to know which
% postgres --version
=> postgres (PostgreSQL) 11.2
Use your system's package manager. For Arch Linux, use pacman:
pacman -S nodejs yarn
You will need to create a pokemon_trade role (or whatever you specify in your
.env, for the config/database.yml) and allow it create/manage a database and
login:
sudo su postgres -c 'psql -c "CREATE ROLE pokemon_trade WITH CREATEDB LOGIN"'
Default role (user) defined in config/database.yml is simply pokemon_trade.
Feel free to use something more fitting as needed.
Copy the .env configuration into place, configure it, then set up the database.
# Copy the .env template to .env
# After copying, you should edit the configuration as needed.
cp .env{.template,}
bundle exec rails db:create db:schema:load
rails server
webpack-dev-server for frontend hot module reloadingRails will proxy webpack-dev-server if it's running. All you need to do is
start it in addition to the Rails server:
bin/webpack-dev-server
Alternatively, if you want a quick command to run both the Rails server and
webpack-dev-server for hot module reloading for frontend development, start the
server with foreman (instead of rails server/bin/webpack-dev-server):
gem install foreman
foreman start -f Procfile.dev
Simply put, foreman reads a file and starts a process for each pre-defined
command.