Giter Site home page Giter Site logo

whaha-ha / chippd Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 10.82 MB

Commercial website that sells various personal items designed and packaged according to the user's needs by attaching a QR code.

Home Page: https://chippd.com/

Ruby 35.13% Procfile 0.01% API Blueprint 0.62% JavaScript 17.85% CoffeeScript 1.55% CSS 0.20% SCSS 15.96% HTML 27.61% Gherkin 1.06%
html5 jquery postgresql ruby-on-rails

chippd's Introduction

Welcome to Chipp'd

Developing

Pristine is running on Rails 3.2.13 with MongoDB as its backend.

MongoDB

To get the app running locally on your machine, you first need to have MongoDB installed. The easiest way to do this on a Mac is via Homebrew. If you do not have homebrew installed, you can do that by following the instructions here. Once homebrew is installed, installing MongoDB is as simple as:

brew install mongodb

Make sure you follow the instructions at the end of the install process so MongoDB is started automatically for you when your computer boots up.

Importing a production database snapshot locally

    bundle exec rake db:sync:local

File Attachments

To sync file attachments between environments, you need to log into the S3 console and copy the uploads folder between buckets. Important: Be careful when you do this so that you don't accidentally delete your production assets.

Rails Setup

Rails setup is simple. There aren't any migration tasks because we're using MongoDB.

bundle install
bundle exec rails s

After that, the app will be running at http://0.0.0.0:3000.

Deployment

There are both staging and production servers for Chipp'd. Changes to these servers are deployed by pushing code to the staging and master branches of the repository respectively. Prior to actually being deployed, code is run through the continuous integration process, and if all tests pass, the site is deployed to the appropriate server. Important: because code on the master and staging branches is automatically deployed, work should never be done on these branches directly.

Staging

You can setup your local repository for the staging environment by doing the following:

# Setup staging remote branch
git fetch origin
git branch --track staging origin/staging

Then, deploying to staging is as simple as:

git push origin staging

The staging site is available at https://chippd-staging.herokuapp.com.

Production

Deploying to production is as simple as:

git push origin master

Misc

Sitemaps

Documentation

Using rake sitemap:refresh will notify major search engines to let them know that a new sitemap is available (Google, Bing). To generate new sitemaps without notifying search engines (for example when running in a local environment) use rake sitemap:refresh:no_ping

Source

chippd's People

Contributors

whaha-ha avatar

Stargazers

Yassir Bolles avatar James Haffman avatar Web Developer avatar  avatar

Watchers

 avatar  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.