Connecting nonprofits with communities in Nashville and Atlantic City (for now!).
- Ruby on Rails 6.1.x
- Ruby 3.1.x
- Postgres and Postgis
- Hotwire
- Tailwind CSS
- jsbundling and cssbundling
- Requirements
- Bundler (
gem install bundler
) - Redis
- cmake
-
Clone the repository:
git clone xxxx
-
Run
bin/setup
to 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:migrate
andrails db:seed
- Run
bin/dev
to start the server - Visit
localhost:3000
in 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
pause
inside anit
statement. - If you want to see the logs you can use
:log
, e.g.it "xxx", :log do