Skip to content

Blog web page made with Ruby on Rails and with Bootstrap

Notifications You must be signed in to change notification settings

juanpabloxk/Rails-Blog

Repository files navigation

Live demo: https://xleed-blog.herokuapp.com/

Postgres commands

Login as Postgres and run the following:

CREATE DATABASE blog_dev;
CREATE DATABASE blog_test;
CREATE ROLE blog_admin WITH LOGIN PASSWORD 'postgres';
ALTER USER blog_admin CREATEDB;
ALTER DATABASE blog_test OWNER TO blog_admin;
ALTER DATABASE blog_dev OWNER TO blog_admin;

Then run the migrations:

bin/rails db:migrate RAILS_ENV=test
bin/rails db:migrate RAILS_ENV=development

Create initial data

Open a rails console and run:

User.new(username: 'JuanP', password: '1234').save
Category.new(name: 'Sports', description: 'News about sports').save

Testing setup

This project uses RSpec, I followed this guide

Other useful link: here

Troubleshoot

  • On Ubuntu 20.04: An error occurred while installing pg (1.2.3). Solved by running: sudo apt-get install libpq-dev ruby-dev

About

Blog web page made with Ruby on Rails and with Bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •