👛 Prelaunch website for DNVB perfume startup
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
tmp
vendor
.DS_Store
.gitignore
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
config.ru
package.json
yarn.lock

README.md

Love Sylvie

Web application / prelaunch referral web application and admin dashboard for Love, Sylvie.

Development instructions

Clone the repository

git clone git@github.com:ccabo1/lovesylvie.git

Or fork the repository.

Next, run bundle install to get the necessary gems then rails s to get the development server running on localhost:3000.

This application uses SQLite3 for development and PostgreSQL for production.

Rails Boilerplate

Boilerplate application for Ruby on Rails web apps. This application was built atop this boilerplate.

Functionality

  • Simple templating with a navbar, full-page height page content, and footer
  • General web pages via the welcome controller
  • user sign in / registration / etc. via Devise
    • Basic styling for forms
    • Basic jQuery front-end validation on forms
    • Specialized Devise routes for readability
      • /login, /register, /logout, /password, etc.

Meta tags and titles

Meta tags can be customized on each page using the following syntax:

<head>
  <% title 'Example title' %>
  <% description "Description of the webpage" %>
  <% keywords "keywords,to,inlcude" %>
  <% image "http://website.com/linktoimage.jpg" %>
</head>

If these are not included in a given .html.erb file, then the application resorts to the default meta tag and title settings provided in app/views/layouts/application.html.erb.

Styling

  • Bootstrap 4 Alpha
    • jQuery, Tether, and Bootstrap 4 Alpha javascript files are included
  • Strapper
    • The source code is included and can be edited
  • Font Awesome
  • All additional styling can be written in SCSS via the app/assets/stylesheets/* directory
    • There are included styles for notifications and the navbar, which also can be edited

Notifications

To flash a red alert:

flash[:alert] = "Your alert message"

To flash a green notice

flash[:notice] = "Your notice message"

Note that notifications only show on page load. Notifications are styled to be fixed position banners across the top of the page that disappear after a short amount of time. You can customize the JavaScript code in the application.html.erb file to adjust the timing of notifications and the types of notifications (beyond alert and notice) which are accepted.