Connecting nonprofits with communities in Nashville and Atlantic City (for now!).
- Ruby on Rails 7.2.x
- Ruby 3.2.x
- Postgres and Postgis
- Hotwire
- Tailwind CSS
- jsbundling and cssbundling
- Requirements
- Bundler (
gem install bundler) - Redis
- cmake
- Github SSH key (for cloning the repository)
- Postgres with Postgis extension
- Clone the repository:
git clone git@github.com:TelosLabs/giving-connection.git - Run
bin/setupto install dependencies and setup the database - Create database:
rails db:create - Associate postgres database with postgis:
- Run postgres:
psql -d giving_connection_development - Inside of postgres command line, run
CREATE EXTENSION IF NOT EXISTS postgis;
exit
- Run
rake db:gis:setup
- Start redis with
redis-server - Run
rails db:migrateandrails db:seed - Run
bin/devto start the server - Visit
localhost:3000in your browser
For running the app with Docker, check out the Docker README
- Fork the repository
- Create a new branch
- Make your changes
- Push your changes to your fork
- Create a pull request
We use Standard Ruby for linting and formatting.
Run bundle exec rubocop to check all ruby files
Run bundle exec rubocop -a to auto-correct offenses
Run tests with bundle exec rspec
- Headless is the default config. If you want to see the browser you can run the following command:
HEADLESS=false bundle exec rspec - If you want to pause the execution you can use
pauseinside anitstatement. - If you want to see the logs you can use
:log, e.g.it "xxx", :log do