Challenge is a rails/react app meant to be used with our code challenge assignment. Use this as the starting point for your code challenge.
- Language
- Ruby 3.1.2
- Rails 6.1
- Node 16
# Clone and setup repo
git clone [email protected]:beehiiv/challenge.git
cd challenge
# Install and setup server dependencies
bundle install
bundle exec rake db:create db:migrate
yarn install
# Backend (http://localhost:2000)
bundle exec foreman start
# Frontend (http://localhost:2001)
yarn watch:app
# view at http://localhost:2001, basic auth is username/password (see `config.ru`)
# Setup test DB for testing
./scripts/setup_test_db
# Run tests
bundle exec rspec
bundle exec standardrb