Skip to content

elibiz443/frontview

Repository files navigation

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

Contact Us & Footer Section:

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.