Skip to content

CSC322-Grinnell/imagine-grinnell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Rails Project for CSC-324 Software Design and Development

Imagine Grinnell Giving Gardens

Running on your machine

  1. 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.
  1. Run docker-compose run rails bin/initialize.sh to initialize the database
  2. Run docker-compose up
  3. Visit http://localhost:3000/ in your browser of choice.

Running tests

Run docker-compose run rails bin/test.sh

Linting

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:

Javascript

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.

CSS

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

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.

Docker

See Docker.md. Read it. Seriously.

Adding code to this repository / Git style

See the Contributing.md file.

Spring 2019 Readme:

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