Giter Site home page Giter Site logo

learning_buddies's Introduction

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

*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

Step 1: Downloading The Files

Download all the files from this repository .

Step 2: Downloading The Gems

In the terminal, inside the root folder, run the command:

bundle install

Step 3: Setting Up DOTENV

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.

Step 4: Setting Up The Database

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

Step 5: Running The Server Locally

Inside the root folder, type in the terminal:

rails s

This runs the rails server, usually on localhost:3000.

learning_buddies's People

Contributors

kyoung90 avatar mlmccor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.