Coder Social home page Coder Social logo

libertys-promise's Introduction

# LP New Site Design

This site is being designed for an Alexandria, VA based non-profit.

Technologies Used

Ruby on Rails with PostgresQL Database

Styling

Bootstrap getbootstrap.com/

[Start Bootstrap](startbootstrap.com/) - [Agency](startbootstrap.com/template-overviews/agency/)<br /> Much of this site was based off of the Agency bootstrap template, available here:_ [Agency](startbootstrap.com/template-overviews/agency/) is a one page agency portfolio theme for [Bootstrap](getbootstrap.com/) created by [Start Bootstrap](startbootstrap.com/).

Javascript Libraries

jquery I used jquery to “write less- and do more.”_ jquery.com/

Jvector Map I used the javascript plugin which displays a world map and the number of youth from each country comes from the jvector map plugin, viewable here:_ jvectormap.com/

Ruby Gems

Cancancan User Abilities -github.com/CanCanCommunity/cancancan

CKEditor To allow users custom styling on creating post. I added .html_safe in the post views show page to allow the HTML tags from CKeditor styling to show up. github.com/galetahub/ckeditor

Devise User Authentication github.com/plataformatec/devise

Font Awesome Rails I use this library for the navbar and other icons on the website. github.com/bokmann/font-awesome-rails

Friendly ID Used to create custom URL for posts. github.com/norman/friendly_id

Other Plugins

Snapwidget instagram plugin For displaying the organization’s instagram feed._ snapwidget.com/

Twitter widget dev.twitter.com/web/overview

Architecture Notes

Application Controller: The “authorize admin” method redirects anyone not signed in + admin to the root page.

Users: Going to /users anyone can sign up, but those who sign up cannot manage any content through the posts, job_openings, or other users without the admin field boolean being changed to true._

Posts (Listed as “News” in Navbar): The index of the posts scaffold and all of the individual job openings can be viewed by the public, but only the administrator can create/update/destroy. The three most recent posts are shown on a partial on the site’s root page (pages/index)._#

Job Openings: This is for one of the organization’s youth employment program, not for jobs at the organization itself. The index of the Job Openings scaffold and all of the individual job openings can be viewed by the public, but only the administrator can create/update/destroy._

Users: Only the administrator can create/update/destroy new users._

To Do List for the Future

*Report a Bug/Request Content Update: When users are signed in and admin, create a way for them to “report a bug/request content update.” Make it a seperate contact page and include from, a link to the page they want updated, and a description of the issue/content request. Send copies to whoever is the current website administrator. Another way to do this (perhaps to keep all the content in one place) would be to create a small forum and allow users to comment on it and check a boolean for “completed,” and possibly send an automated e-mail to the developer whenever a user creates a new request. *Resources(“Secret”): The old Liberty’s Promise website has a /secret page with resume template and other materials for their youth to download. A possible solution would be to add these and upload with paperclip gem, or add them as external downloads to a public google drive.

Other Notes

Turbolinks: I disabled this as a temporary fix to get all the javascripts working. There aren’t a ton of scripts on the site so it shouldn’t affect performance much. Rails_12 Factor: This gem or something else isn’t quite working properly to push to Heroku, so I’m running “git rm-r public/assets” and then “RAILS_ENV=production rake assets:precompile” before running “git add . Need to fix this since it takes a while to push live now.

Live Site

libertys-promise.herokuapp.com/

libertys-promise's People

Contributors

zasman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.