https://github.com/bayars/rails-blog-sample
The project made with Ruby on Rails that is simple blog application.
https://github.com/bayars/rails-blog-sample
blog hacktoberfest postgresql ruby ruby-2-6-5 ruby-on-rails
Last synced: about 2 months ago
JSON representation
The project made with Ruby on Rails that is simple blog application.
- Host: GitHub
- URL: https://github.com/bayars/rails-blog-sample
- Owner: bayars
- License: mit
- Created: 2018-12-09T10:56:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T18:43:53.000Z (over 2 years ago)
- Last Synced: 2025-03-11T19:45:08.619Z (over 1 year ago)
- Topics: blog, hacktoberfest, postgresql, ruby, ruby-2-6-5, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 53.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rails Sample Blog
[](https://gitlab.com/rection/WorkofRails/-/commits/master)
Hi, It's running with ruby-2.6.5 and rails 6.0. It's has admin panel and you can login and sign up. This is live in [Heroku](https://serene-anchorage-83026.herokuapp.com).
The main page:

For use for development;
## Development
First you need to installed rvm. You can install in [here](https://rvm.io/rvm/install). These commands preparing for run rails application.
```
rvm install ruby-2.6.5
rvm use ruby-2.6.5
rvm gemset create blog
rvm use ruby-2.6.5@blog
```
You need to install gems and configure postgreSQL connection. It might be install postgreSQL and postgreSQL-devel. I used PostgreSQL 11 but you have to use up to PostgreSQL 10 version.
```
RAILS ENV=development bundle install
RAILS ENV=development bundle exec db:setup
RAILS ENV=development bundle exec db:migrate
```
You can run with;
```
RAILS ENV=development rails server
```
## Test
If you want to run rspec tests;
```
rspec spec/
```
## Production:
```
git clone https://gitlab.com/rection/WorkofRails
cd WorkofRails
```
Rvm installation need to do and that is upside.
```
RAILS ENV=production bundle install
RAILS ENV=production bundle exec db:setup
RAILS ENV=production bundle exec db:migrate
```
The last step is running unicorn.
```
RAILS ENV=production rails server
```
I use reverse proxy on Nginx. That's change with your style.

