Skip to content

acm-uiuc/groot-quotes-service

Repository files navigation

Groot Quotes Service

Build Status

Join the chat at https://acm-uiuc.slack.com/messages/C6XGZD212/

Installing MySQL

brew install mysql

Migrate DB after model alteration (clears all data)

rake db:migrate

Create secrets.yaml

cp secrets.yaml.template secrets.yaml

Create databases

You need to login to mysql, and create the database names for your development and test environments and fill it in secrets.yaml. For example,

In mysql:

CREATE DATABASE groot_quote_service_dev

Run Application

ruby app.rb

Routes (from rake routes:show)

:: GET :: /quotes /quotes/:id /status

:: HEAD :: /quotes /quotes/:id /status

:: POST :: /quotes /quotes/:id/vote

:: DELETE :: /quotes/:id /quotes/:id/vote

:: PUT :: /quotes/:id/approve

Data Migration

Run rake db:liquid to migrate a table dump of previous quotes in csv format. An example can be seen under scripts/data.csv.template.

License

This project is licensed under the University of Illinois/NCSA Open Source License. For a full copy of this license take a look at the LICENSE file.

When contributing new files to this project, preappend the following header to the file as a comment:

Copyright © 2017, ACM@UIUC

This file is part of the Groot Project.  
 
The Groot Project is open source software, released under the University of Illinois/NCSA Open Source License. 
You should have received a copy of this license in a file with the distribution.

About

Groots Quote Service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages