Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/synkevych/nested_rails_forms

A program for creating a quiz similar to Google Forms.
https://github.com/synkevych/nested_rails_forms

codecov devise heroku herokuapp jquery materialize-sass postresql rails5 ruby travis-ci

Last synced: 9 days ago
JSON representation

A program for creating a quiz similar to Google Forms.

Awesome Lists containing this project

README

        

RubyForms





RubyForms
















RubyForms easy form creation and answers to them. Built with RoR framework, tested with RSpec, deployed to Heroku.

## Table of Contents

- [Introduction](#introduction)
- [Features](#features)
- [Getting started](#getting-started)
- [Feedback](#feedback)

## Introduction

Create a new form with a dynamic question field, publish it for other users, answer these questions with comment and save them. View your answer on the show page and share the link with your result to other users. Deployed to Heroku and available [online](https://quiet-plains-51299.herokuapp.com/).

## Features

A few of the things you can do with RubyForms:

* Register to app or login
![Log In page](public/img/login.png)
* Create new checklist form with unlimited questions
![Checklist show page](public/img/checklists_show.png)
* If your survey form is ready, publish it (click on the checkbox with the name "Unpublished")
* Find the required survey among the published survey forms and create forms with answers
* Answer all questions in the survey and save your result
![Audit edit page](public/img/audits_new.png)
* View all your questions and answers in the survey
![Audit show page](public/img/audits_show.png)
* View all your Audits
![Audit index page](public/img/audits_index.png)

## Getting started

##### Prerequisites

The setups steps expect following tools installed on the system.

- Github
- Ruby [2.6.3](https://www.ruby-lang.org/en/news/2019/04/17/ruby-2-6-3-released/)
- Rails [5.2.4.3](https://weblog.rubyonrails.org/2020/5/18/Rails-5-2-4-3-and-6-0-3-1-have-been-released/)
- PostgreSQL >= 9.3

##### 1. Check out the repository

```bash
git clone https://github.com/Synkevych/ProjID-HR014.git
```

##### 2. Create database.yml file

Copy the sample database.yml file and edit the database configuration as required.

```bash
cp config/database.yml.sample config/database.yml
```

##### 3. Create and setup the database

Run the following commands to create and setup the database.

```ruby
rails db:create
rails db:setup
rails db:migrate
```

##### 4. Start the Rails server

You can start the rails server using the command given below.

```ruby
rails s
```

And now you can visit the site with the URL http://localhost:3000

##### 5. Running specs tests

You can run all tests using the command given below.

```bash
# Default: Run all spec files (i.e., those matching spec/**/*_spec.rb)
$ rspec

# Run all spec files in a single directory (recursively)
$ rspec spec/models

# Run a single spec file
$ rspec spec/controllers/accounts_controller_spec.rb

# Run a single example from a spec file (by line number)
$ rspec spec/controllers/accounts_controller_spec.rb:8

# See all options for running specs
$ rspec --help
```

## Feedback

Feel free to send us feedback on [Twitter](https://twitter.com/synkevych) or [file an issue](https://github.com/Synkevych/ProjID-HR014/issues/new). Feature requests are always welcome.