Giter Site home page Giter Site logo

cyclid's Introduction

Cyclid

Getting started

$ rbenv install 2.3.0
$ bundle install --path vendor/bundle
$ bundle exec rake db:migrate
$ CYCLID_CONFIG=config/development bundle exec bin/cyclid-db-init

Cyclid requires a Redis server for Sidekiq; you can either run a Redis server on your local machine or run bundle exec rake redis to start one.

You can start Cyclid under Webrick with bundle exec rake rackup, and then start Sidekiq with bundle exec rake sidekiq, or you can run both under Guard with bundle exec rake guard.

You can use curl or wget with HTTP Basic authentication, or the test/hmac-test.rb command for GET's using HMAC authentication.

Testing

RSpec tests are included. Run bundle exec rake spec to run the tests and generate a coverage report into the coverage directory. The tests do not affect any databases and external API calls are mocked.

The Cyclid source code is also expected to pass Rubocop; run bundle exec rake rubocop to lint the code.

Documentation

Cyclid uses YARD to generate documentation for both the Ruby API (internal Modules, Classes & Methods) and the REST API. Run bundle exec rake doc to generate both sets of documentation. The Ruby documentation is placed in the doc/api directory, and the REST API documentation is placed in the doc/rest directory.

Test data

The test/db-loader.rb script creates two users ('admin' and 'test'), and two organizations ('admins' and 'test).

Users

An admin (Super Admin) user is configured with the following attributes:

A test user is configured with the following attributes:

Organizations

Two Organizations are created:

  • admins
  • test

The admin user is a member of admins, and the test user is a member of test.

cyclid's People

Contributors

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