Ruby Rails Project for CSC-324 Software Design and Development
Imagine Grinnell Giving Gardens
- Install Docker [link]
- Windows note: you to want to make sure the drive that you have this folder in available for bind mounts. Google docker bind mount windows for more information. This is required in order to "hot reload" the rails code.
- Run
docker-compose run rails bin/initialize.sh
to initialize the database - Run
docker-compose up
- Visit
http://localhost:3000/
in your browser of choice.
Run docker-compose run rails bin/test.sh
Code style for ruby, javascript, and css/scss files can be checked with docker-compose run rails bin/lint.sh
.
This is done automatically on pushes to master and pull requests on master, and will show an error if any linting fails.
Some style errors can be automatically fixed with docker-compose run rails bin/lint.sh --fix
.
These three file types are handled by three different programs, described below:
The javascript in this code has style defined in .eslintrc
for eslint, which can be tested with docker-compose run rails bin/lint.sh --js
.
Automatic fixes can be attempted for some problems with docker-compose run rails bin/lint.sh --js --fix
.
The css and scss files in this repository have styling defined in .stylelintrc.yml
, based on these defaults.
These files can be checked with docker-compose run rails bin/lint.sh --css
.
Automatic fixes can be attempted for some problems with docker-compose run rails bin/lint.sh --css --fix
.
Ruby linting is handled by rubocop, with configuration defined in .rubocop.yml
.
Rubocop can be run with docker-compose run rails bin/lint.sh --ruby
.
Automatic fixes can be attempted for some problems with docker-compose run rails bin/lint.sh --ruby --fix
.
See Docker.md. Read it. Seriously.
See the Contributing.md
file.
This is the code for creation of the giving gardens webpage associated with Imagine Grinnell. Documentation for the API can be found when the project is ran at /api-docs. The documentation utilized Swagger.
DB Seed data can be found at /db/seed_data/
To change the Swagger documentation:
Change the specs at /spec/"spec you want to change".
rake rswag:specs:swaggerize
Last Active Group: Spring 2019 For Next Group: Fully develop and fix test cases