Giter Club home page Giter Club logo

my_best's Introduction

Conciage

  • Ruby 2.0
  • Rails 4
  • pg

Setup

Clone the project

[email protected]:bemall/conciage.git

Fetch/Checkout to 'develop'/Create feature branch

git fetch
git checkout --track -b develop origin/develop
git checkout -b your_feature

Install gems

bundle

Setup development secrets

In your bash_rc/bash_profile/zhrc setup an env variable for devise secret:

export DEVISE_SECRET_KEY='secret_key'

Also we need a secret_key for the app, you can setup using an env variable:

export SECRET_TOKEN='secret_key'

Or using a file config/secret_token.yml:

development:
  token: "secret_token"
test:
  toke: "secret_token"

Setup config/database.yml

cp config/database.yml.example config/database.yml

Setup your username/password and DO NOT remove this line:

schema_search_path: "conciage"

We use schemas for tables, if you change this line the entire database setup will fail.

./recreate_database.sh

Run the project

rackup config.ru -p 3000

Access in your browser:

http://localhost:3000

Tests

You can use guard to watch the tests:

guard

Or run it manually:

rspec

Once you have configured the database with ./recreate_database.sh tests should work out of the box.

Image size guidelines

For image sizing we generally need a large size to be uploaded so that the image can be re-sized appropriately to fit all devices. We also need a general maximum upload size of say 6 MB such that at any one time we never have an image that is larger than 6MB. We will need a good image resizing function that will re size and optimize for web rendering. The maximum file size to be uploaded for any image is 5MB To accommodate all devices, the recommended upload size is 500 x 500 px, In user activity feed, comments and other areas where the profile picture appears, it will be re sized to 48 x 48 px or 24 x 24 px. Thumbnails at 205 by 205 Container at 578 by 578 and max size at 510 by 510

my_best's People

Watchers

James Cloos avatar Shoaib Malik 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.