Skip to content

Parastoo-S/MakerSpaceRepo

 
 

Repository files navigation

Rails 4.2

Ruby 2.3.4

Initial setup of postgresql database in linux

Install libpq

sudo apt-get install libpq-dev

Run bundle install

bundle install

Install postgresql server

sudo apt-get install postgresql

Set the password for postgres user

In a postgresql shell run the following query:

ALTER USER "postgres" WITH PASSWORD 'postgres';

Create the database

In a postgresql shell run the following query:

CREATE DATABASE makerspacerepo;

rake db setup

run the following command in a bash shell in the same directory as Rakefile (main project directory)

rake db:setup

Run all tests to load clean fixtures in the database

Fixtures are dummy instances of models for testing and development

bundle exec rake

Fire up the rails server with:

rails s

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.8%
  • CSS 19.1%
  • Ruby 5.2%
  • HTML 4.9%
  • CoffeeScript 0.0%
  • Shell 0.0%