/OneBitForms

Google Forms clone build in Angular + Rails

Primary LanguageRuby

OneBitForms

Google Forms clone build in Angular + Rails

Ruby on Rails Api for OneBitFormsClient (Google Forms Clone)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

With Docker

Prerequisites

You must have docker and docker-compose installed

For more information, please see https://docs.docker.com/install/ 

Installing

Access the project folder in your terminal enter the following

$ docker-compose build
$ docker-compose run --rm app bundle install
$ docker-compose run --rm app bundle exec rails db:create
$ docker-compose run --rm app bundle exec rails db:migrate

After that for test the installation enter the following to up the server

$ docker-compose up

Open your browser and access localhost:3000 to see the home page

Running the tests

To run the tests run the following in your terminal

$ docker-compose run --rm app bundle exec rspec

Without Docker

Prerequisites

You must have ruby and bundler gem installed

For more information, please see https://www.ruby-lang.org/en/documentation/installation/

Installing

Access the project folder in your terminal enter the following

$ bundle install
$ bundle exec rails db:create
$ bundle exec rails db:migrate

After that for test the installation enter the following to up the server

$ bundle exec rails s

Open your browser and access localhost:3000 to see the home page

Running the tests

To run the tests run the following in your terminal

$ bundle exec rspec

Built With

  • Ruby on Rails - The web framework used
  • Devise Token Auth - Authentication Token
  • Rack Cors - Cross-Origin Resource Sharing (CORS) for Rack compatible web applications.
  • Rack Attack - Rack middleware for blocking & throttling abusive requests
  • Friendly Id - "Swiss Army bulldozer" of slugging and permalink plugins for Active Record
  • OmniAuth - Standardizes multi-provider authentication for web applications
  • PostgreSQL - SGDB
  • Rspec Rails - RSpec testing framework to Ruby on Rails as a drop-in alternative to its default testing framework, Minitest.
  • Factory Bot Rails - Fixtures replacement with a straightforward definition syntax
  • FFaker - Easily generate fake data

Authors

License

This project is licensed under the MIT License