Before you begin, make sure you have the following prerequisites installed on your system:
- Ruby 3.3.0
- Rails 7.1.3.4
- Postgresql 14.11
-
Clone the project using the provided URL:
git clone https://github.com/rahul2103/spreeQA.git
-
Install the required gems using Bundler:
bundle config set --local path .gemfiles bundle install
Or, you can use:
bundle install --path .gemfiles
-
Create a
database.yml
file and configure your database settings. You can refer to theconfig/database.yml.example
file for reference. -
Create the database:
RAILS_ENV=development bundle exec rails db:create
-
Run database migrations:
RAILS_ENV=development bundle exec rails db:migrate
-
Add app credentials:
- config/master.key
abc
- config/master.key
-
Seed the database:
bundle exec rails db:seed
-
Compile assets for development:
RAILS_ENV=development bundle exec rails assets:clean assets:precompile
-
Restart your server.
If it was already running, make sure to restart it so that it can find the assets properly.