Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.05 KB

ManualInstallation.md

File metadata and controls

23 lines (20 loc) · 1.05 KB

Manual Installation

  1. Install Ruby 3.2.1.
  2. Create .env file in root folder of the project.
  3. Install PostgreSQL >=14.13.
  4. Add corresponded env vars to .env file with DB credentials. E.g.:
HEALTHKEEPER_DEVELOPMENT_DATABASE = "healthkeeper_development"
HEALTHKEEPER_DEVELOPMENT_DATABASE_USERNAME = "healthkeeper"
HEALTHKEEPER_DEVELOPMENT_DATABASE_PASSWORD = "magic"

HEALTHKEEPER_TEST_DATABASE = "healthkeeper_test"
HEALTHKEEPER_TEST_DATABASE_USERNAME = "healthkeeper"
HEALTHKEEPER_TEST_DATABASE_PASSWORD = "magic"
  1. Run ./bin/bundle install
  2. Run rails db:setup.
  3. In order to recreate DB run rails db:reset.
  4. In order to (re)populate DB with a testing data run rails db:seed.
  5. To run Rails server use ./bin/dev instead of rails s/rails server (see next chapter if curious why).

Bootstrap and TailwindCSS

In order to support hot reload of TailwindCSS class changes, you need to run Rails server with ./bin/dev instead of rails s/rails server.