Giter VIP home page Giter VIP logo

copycopter-server's Introduction

Copycopter

Build Status

Copycopter is a service for editing the copy text of a Rails application.

Each Rails application has its own Project, connected by an API key. Each piece of copy in a Project is a Blurb. Each Blurb has many Versions, which track changes users make to copy.

Each Version is either draft or published. The most typical scenario is to display published content in production, and draft in all other environments.

A developer can issue a deploy, which marks the latest Version of all Blurbs as published.

Get your copy

git clone git://github.com/copycopter/copycopter-server.git
cd copycopter-server

Set up database

For MySQL support:

cp config/database.mysql.yml config/database.yml

For PostgreSQL support:

cp config/database.postgres.yml config/database.yml

For SQLite3 support:

cp config/database.sqlite.yml config/database.yml

Add your connection details to config/database.yml.

In the Gemfile remove the database connectors you don't need.

Install dependencies

bundle install

Adding a project

bundle exec rake copycopter:project NAME=Iora USERNAME=Copy PASSWORD=Copter

or at Heroku

heroku run rake copycopter:project NAME=Iora USERNAME=Copy PASSWORD=Copter

Updating a projects password

bundle exec rake copycopter:change_project_password NAME=IORA OLD=Copter NEW=COPTAH

or at Heroku

heroku run rake copycopter:change_project_password NAME=IORA OLD=Copter NEW=COPTAH

Removing a project

bundle exec rake copycopter:remove_project NAME=Iora

or at Heroku

heroku run rake copycopter:remove_project NAME=Iora

Deploy

Deploy Copycopter Server like any other Rails app.

with Capistrano

  1. Create your own deploy.rb: cp config/deploy.example.rb config/deploy.rb
  2. Change config/deploy.rb to your own needs
  3. Take care to include a config/database.yml into your deployment
  4. Run the deploy setup: cap deploy:setup
  5. Run initial deployment: cap deploy
  6. Migrate the database: cap deploy:migrate

to Heroku

  1. Create your own app: heroku create --stack cedar
  2. Push the code to Heroku: git push heroku master
  3. Migrate the database: heroku run rake db:migrate
  4. Restart your app: heroku restart

Contribute

  1. See the style guide.
  2. Set up dependencies: bundle
  3. Run the test suite: bundle exec rake
  4. Make sure all tests are passed

Credits

thoughtbot

Copycopter Server was created by thoughtbot, inc

It is maintained by the fine folks at Crowdtap and Iora Health.

License

Copycopter Server is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.

copycopter-server's People

Contributors

patricksrobertson avatar cmavromoustakos avatar jmileham avatar robotblake avatar thoughtbot-travis avatar jferris avatar michaeldauria avatar addynaik 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.