Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

CRUD Blog on Rails. Geo-Targeted Banner Ads, Visitor Analytics, Tags, Meta Tags, RSS, Sitemap, User-Friendly URLs, Comments Pre-Moderation.

License

NotificationsYou must be signed in to change notification settings

cmirnow/CRUD-Blog

Repository files navigation

CRUD Blog on Rails. Geo-Targeted Banner Ads

Features

  • Convenient site administration panel
  • Ease of management
  • Geo-Targeted Banner ADS
  • Text editor
  • Built-in visit analytics
  • Categories
  • Articles
  • Pagination of the list of articles
  • AJAX Contact Form
  • AJAX Comments
  • Comments Pre-Moderation by default
  • Notifications of new comments by email
  • Upload images to base64, to local storage, to AWS S3
  • Preview an Image. Various preview options can be passed to the Active Storage variant method.
  • Tags
  • Meta Tags
  • Open Graph Protocol and Twitter Card Meta Tags
  • RSS
  • User-Friendly URLs
  • Sitemap
  • Current Weather by IP on Google Map
  • Advanced Slider
  • PhotoGallery
  • Lightbox
  • JavaScript Time Greeting

CRUD Blog on Rails. Geo-Targeted Banner Ads

For Beginners: How to Start.Deploying Rails Blog on Heroku.

CRUD Blog on Rails. Geo-Targeted Banner Ads

Quickly start

The application needs postgreSQL. Make sure this (for example) works:

$ sudo service postgresql-12 restartRedirecting to /bin/systemctl restart postgresql-12.service

Next:

$ sudo -u postgres psqlpostgres=# CREATE DATABASE analytics_app_development;CREATE DATABASE

Next:

$ git clone https://github.com/cmirnow/CRUD-Blog.git$ cd CRUD-Blog

Set your login and password to db/seeds.rb

Ready to get started?

$ bundle install$ yarn install --check-files$ rake db:migrate$ rake db:seed$ bundle exec figaro install

Edit:

#config/application.ymlRECAPTCHA_SITE_KEY: "*************************"RECAPTCHA_SECRET_KEY: "**************************"GMAIL_USER_NAME: '****@***********'GMAIL_PASSWORD: '************'DOMAIN_NAME: 'https://mstp.herokuapp.com' #For exampleSEND_EMAIL_TO: '****@*********'SUBJECT_EMAIL: 'Hurray! You got a new form!'SUBJECT_COMMENT_EMAIL: 'You got a new comment!'KEY_OPENWEATHERMAP: '*******************************'GOOGLE_MAP_KEY: '*************************************'AWS_ACCESS_KEY_ID: '********************'AWS_SECRET_ACCESS_KEY: '*********************************'REGION: "*********"BUCKET: "*********"
# config/storage.ymlamazon:service: S3access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>region: <%= ENV['REGION'] %>bucket: <%= ENV['BUCKET'] %>

OK, let's go:

$ rails s

Now login:

127.0.0.1:3000/admin

Сreate your first categories and articles.

Finally, create a sitemap:

rails sitemap:refresh

Running specs

$ bundle exec rspec

or

$ bundle exec rspec -fd

About

CRUD Blog on Rails. Geo-Targeted Banner Ads, Visitor Analytics, Tags, Meta Tags, RSS, Sitemap, User-Friendly URLs, Comments Pre-Moderation.

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp