Giter Site home page Giter Site logo

pimp's Introduction

PIMP - Pasteable Images Markdown Pad

TODO: Add badges!

Setting up project locally

Live project: pimp.suhail.uberspace.de

Recommended environment:

Setup:

You can use direnv to automatically add bin to your $PATH. Otherwise you should always use bundle exec to run commands.

Developing

  • In one terminal, enter $ server to start the development server using rerun (which will take care of restarting the server upon changes of important config files)
  • In a second terminal, enter $ guard to start Guard, which automatically takes care of:
  • Open http://localhost:PORT in your browser (use whatever port you specified in config/boot.rb)
  • Execute $ rip_hashrockets from time to time to replace old Ruby hashrockets (=>) with the new syntax

Before merging a pull request

Make sure that:

  • All CRUD functionality is covered (as far as possible) by inherited_resources
  • All authorization is done through cancancan
  • The ability.rb file is thoroughly tested
  • Every action has a correlating feature spec file (nest them in folders similar to the nested routes' structure)
  • Every navigation item has a correlating spec in navigation_spec.rb
  • Run $ i18n-tasks normalize
  • Run $ rake and make sure, no specs are pending/failing
  • Run $ smusher app/assets/images ...

Add external assets (libraries)

At the time being, Bower integration strategies for Rails are prone to problems. We stick to the traditional gems and hope, that some time soon, there's an official Bower integration strategy.

I18n

The i18n-tasks gem makes handling translations easily. It helps finding unused and not yet translated keys, and normalizes (e.g. sorts) the translation files.

  • $ i18n-tasks normalize, then commit
  • $ i18n-tasks unused, then remove unused keys and commit
  • $ i18n-tasks add-missing -v 'TRANSLATE: %{value}', then translate everything (do a project search for TRANSLATE:) and commit

Testing

  • Use @chrome or @selenium flag to visually run feature tests in Chrome or Firefox.

Deployment

Setup

To learn more about setting up deployment on a server, see Deployment.

Deploying

Before deploying, run $ rake HEADHUNTER=true to make sure all HTML and CSS is in good shape!

Before deploying, run $ i18-tasks add-missing and translate the added I18n keys!

Be sure you have committed and pushed all wanted changes, then execute $ mina deploy! Use the --verbose and --trace switch for debugging if something goes wrong.

That's all, folks!

Backlog

You can find the backlog here: BACKLOG.md.

Services

You can find informations about external services in use here: SERVICES.md.

pimp's People

Contributors

jmuheim avatar rowofpixels avatar

Watchers

James Cloos avatar Laeeth Isharc 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.