Giter Site home page Giter Site logo

oragnization_manager_api's Introduction

Organization Manager

Organization Manager is an api only app for managing different level of Organization and employees.

Domain overview

Imagine a huge international corporation. It has many sub-companies in different countries. Each sub-company has many sub-sub-companies in different regions. Each sub-sub-company can have branches in different cities, etc.

Each company(and its sub-companies) needs some specific required amount of employees. To properly operate, the following condition should be met:

Amount of employees in the company + Amount of employees in its sub-companies >= Required amount of employees

You can use Organization Manager api for

  • Add, Remove and show company
  • Add and Remove an employee to the company
  • Get a list of all companies
  • Get a list of all companies where the amount of employees is less than required (list with filter)

Installation

Dependencies

  • Ruby 2.7
  • SQLite

Install bundler and required gems

Once the specified version of Ruby is installed with all its dependencies satisfied, run the following command from the root directory of the application.

gem install bundler
bundle install

Configure application

Update the credentials in database.yml with actual values.

Now you can create the database and perform migrations

rake db:create
rake db:migrate

App will populate the database with an admin user entry when we run the seed.

rake db:seed

Start application

Start Sidekick.

bundle exec sidekiq

Start Application.

rails s

oragnization_manager_api's People

Contributors

navinnair avatar

Watchers

James Cloos 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.