Coder Social home page Coder Social logo

panashemahachi / ifme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ifmeorg/ifme

0.0 2.0 0.0 8.53 MB

Open-source community for mental health experiences

Home Page: http://www.if-me.org/

Ruby 54.86% CoffeeScript 1.14% JavaScript 2.73% CSS 7.43% HTML 33.85%

ifme's Introduction

if me

A community for mental health experiences

Geting Involved

Fork the repository, pick up an issue, or create an issue for a feature you would like to see. If would like to be added as a collaborator, email [email protected].

Check out our Slack page if you have any questions, ideas, or concerns!

Getting Started

Installing Programs

The steps below should be straightforward for Linux and OSX users. Windows users please refer to this guide for tips on setup.

Ruby on Rails

http://railsinstaller.org/en

Postgres

Check out http://www.postgresql.org/download/

OSX

Install via Homebrew

brew install postgresql

#####Linux

Bulid from the source using yum, apt-get, etc.

Windows

Install via graphical installer

Install Gems

After cloning the app on your local machine, in your terminal run the following commands in the /ifme directory

bundle install

Possible Errors

If Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError) is encountered, try running the following commands.

rvm get stable
rvm reinstall ruby
rvm gemset pristine

On Windows, you may encounter an error like SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. If this happens, download the CURL CA bundle and set the environment variable SSL_CERT_FILE to point to it.

Setting Up Postgres

Time to set up a Postgres user!

sudo su - postgres
createuser -s -r ifme_app

In pg_hba.conf, make sure the value for auth-method in the ifme_app database is trust. This is because no password is being used for the local development and test databases, as seen in database.yml. Refer to this guide as a reference.

To find the path of pg_hba.conf run the following commands.

psql
SHOW hba_file;

Running the App Locally

After exiting from Postgres by typing in exit in the terminal, run the following commands.

bin/rake db:create db:migrate
bin/rake db:setup
rails s

Accessing the Database

rails db

Note that ifme_test is used when running unit tests

Testing Accounts

They have been created in seeds.rb.

Email: [email protected]
Password: password99
Email: [email protected]
Password: password99

Unit Tests

Always write unit tests for the changes you've made! If you see any missing unit tests, write them!

rspec

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.