Socket
Book a DemoInstallSign in
Socket

frontview

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frontview

2.2.7
bundlerRubygems
Version published
Maintainers
1
Created
Source

alt text

This is frontview gem, a gem that gives the front-end template to the rails 6 applications for easier web development. It provides the assets contents i.e folders & files(images[favicon.png & logo.png], stylesheets[css/style.css]), javascript content i.e (javascript/packs/main.js) & the views contents folders & Files.

Installation

Add this line to your application's Gemfile:

gem 'frontview'

And then execute:

bundle install

Usage

Run scaffold. Lets assume our model is 'home' which has a 'title' and a 'body'(Optional)

rails g scaffold home title:string body:text

Delete scaffold.scss, from (assets/stylesheets/scaffold.scss). Optional: ------>>> Delete the Sass files i.e homes.scss.

Delete all the files in views/homes except index.html.erb

Generate the necessary files and folders by: N/B: You will be prompted to give the name of your model, In this case you'll write 'home' and press enter. All the files will then be in place.

rails g frontview:install

Create & Migrate DB

rails db:create db:migrate

Finally run the rails server and you are good to go:

rails s

Access your web in: localhost:3000

Sample screenshots of the frontview theme(Fully Responsive):

Home Section:

alt text

Introduction Section (Showing Header):

alt text

About Us Section:

alt text

Our Services Section:

alt text

alt text

Voilà

                         \
                        / \
                       /   \
                      /    |
                     /     |
                    /     /
                  _/     /
___________      /      /
      |   |_____/      /_________
      |   |    /      /\___      \
      |   |   /        /  /      |
      |   |  /        /__/_______/__
      |   | |     ___ /             \
      /   | |    /  /               |
     /    | |   /__/________________/
    /     | |      ___/           \
   /  ___ | |     /  /            |
  /  [___]|_|    /__/_____________/
 /_____/     \    / /          |   
              \  /_/___________/
               \_________/

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/elibiz443/frontview. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Frontview project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 08 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.