These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
*You will need to have a working Ruby On Rails environment. There are tutorials like this one for MAC. In my experience, it is easier with a MAC.
*You will need to have bundler installed. To install, go to your terminal and run:
gem install bundler
Download all the files from this repository .
In the terminal, inside the root folder, run the command:
bundle install
We will need to generate a key that is very private. No one can know about this key which is why it isn't included in the files. This key is used for your JWT encryption, if it gets into the wrong hands your project's security is at risk.
With that said, let's generate a key. In the terminal, type:
rake secret
Copy the result.
Then, Create a .env file in the root folder. In the file, add:
DEVISE_SECRET_KEY='key'
Replace key with the result from your rake secret command.
To create our database, inside the root folder, we just need to type in the terminal:
rails db:migrate
After creating our database, we need to seed it with our questions and answers. We have some default questions and answers, use them as examples to write your own. They are located inside db > seeds.rb
To populate(seed) our database, inside the root folder, we just need to type in the terminal:
rails db:seed
Inside the root folder, type in the terminal:
rails s
This runs the rails server, usually on localhost:3000.