Visit our Live Demo.
Before you get started, the following needs to be installed:
- Ruby. Version 2.2.2 is currently used and we don't guarantee everything works with other versions. If you need multiple versions of Ruby, RVM is recommended.
- RubyGems
- Bundler:
gem install bundler - Git
- A database. Only PostgreSQL has been tested, so we give no guarantees that other databases work. To install postgresql run:
sudo apt-get install postgresql
- Get the code. Cloning this git repo is probably easiest way:
git clone https://github.com/sasasekaric/TestBlog.git- Navigate to the TestBlog project root directory.
cd TestBlog- Install the required gems by running the following command in the project root directory:
bundle install- Create a database.yml file by copying the example database configuration:
cp config/database.example.yml config/database.yml-
Add your database configuration details to
config/database.yml. You will probably only need to fill in username and password for the database(s). -
Create a .env file by copying the example configution file:
cp .env.example .env- Setup the database:
bin/setup- Invoke the background crontab:
sudo service cron restart- In a new console, open the project root folder and start the server.
bundle exec rails serverCongratulations! TestBlog is ready for development. Visit http://localhost:3000/
- Setup test database:
bundle exec rake db:test:prepare- To run unit tests
spring rspec- To run integration tests
spring cucumber