marceloboth / personality-quiz

Are you an introvert or an extrovert? Let's find out!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Project

Basically you can find out if your are an introvert on extrovert person by answer some simple questions:

finalversionpt.gif

The result will not be stored on database, just on session and the user can redo it as many times he wants.

Libraries

  • Ruby 3.2
  • Rails 7
  • Tailwind CSS
  • ViewComponents
  • Stimulus.js
  • Postgres

Installation and running locally

This project as a docker setup for development and test.

First create a .env file on the root folder and place this ENV variables to set on the docker containers:

RAILS_ENV=development
POSTGRES_HOST=db
POSTGRES_USER=admin
POSTGRES_PASSWORD=password123

Run docker compose to build all containers

docker compose up -d --build

Install dependencies and create the database

docker exec -it personality-quiz-ruby bin/docker-entrypoint

Start the web server and tailwind stuffs:

docker exec -it personality-quiz-ruby bin/dev

open the application and fill out the quiz.

To run the specs:

docker exec -it personality-quiz-ruby bundle exec rspec

Coverage expected is 100%: coverage.png

About

Are you an introvert or an extrovert? Let's find out!


Languages

Language:JavaScript 79.1%Language:Ruby 16.6%Language:HTML 3.8%Language:Dockerfile 0.3%Language:Shell 0.2%Language:CSS 0.0%