Skip to content

Surveys is a stand alone Sinatra application built in the spirit of Service Oriented Architecture (SOA).

Notifications You must be signed in to change notification settings

JennicaStiehl/surveys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Surveys

Description

Surveys is a stand alone Sinatra application built in the spirit of Service Oriented Architecture (SOA).

Goals

Surveys is designed to be a small service able to integrate into several different projects. The original intent is for a larger Rails application that assists teachers with attendance, student success strategies tracking and research based predictive analytics to consume API data from surveys. Surveys has a table for questions, answers and question categories. It sends user Id, class ID and answer ID back to the main application, which in turn creates views for teachers in order to assist in education goals.

Core Technical Concepts/Inspiration

Sinatra
ActiveRecord
Postgresql
Fast JSON API

Getting Started/Requirements/Prerequisites/Dependencies

run the following commands:

bundle install
bundle exec figaro install
bundle exec rake db:{create,migrate,seed}
RACK_ENV=test rake db:migrate

Locations/Where to Find the applications

Here To Learn

production: https://young-anchorage-86985.herokuapp.com

Surveys

production: https://aqueous-caverns-33840.herokuapp.com

Machine Learning Microservice

production: http://lit-fortress-28598.herokuapp.com/

API Endpoints

get '/api/v1/questions'
get '/api/v1/responses'
get '/api/v1/all_responses'
get '/api/v1/answers'
get '/api/v1/q_and_a'
post '/api/v1/responses'

Versioning

v1  5/27/2019

Contributing

Github: https://github.com/JennicaStiehl/surveys

Contributor Guidelines
Code Style/Requirements
Format for commit messages
Thank you (name contributors)

Resources

Project Guidelines: http://backend.turing.io/module3/projects/terrificus
RSpec: https://gist.github.com/Jamedjo/5792332
http://recipes.sinatrarb.com/p/testing/rspec?
Readme Template: https://github.com/zalando/zalando-howto-open-source/blob/master/READMEtemplate.md
Setup: https://gist.github.com/jtallant/fd66db19e078809dfe94401a0fc814d2
https://stackoverflow.com/questions/20638136/undefined-method-desc-for-sinatraapplicationclass

My notes:

databases: 'surveys-development', 'surveys-test'


select * from responses inner join choices on responses.choice_id = choices.id inner join questions on questions.id = choices.question_id;

select * from responses inner join choices on responses.choice_id = choices.id;

select * from categories inner join questions on categories.id = questions.category_id;

New seed data

heroku restart
heroku pg:reset DATABASE
heroku run rake db:{migrate,seed}

About

Surveys is a stand alone Sinatra application built in the spirit of Service Oriented Architecture (SOA).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •