Skip to content

HayesAhmed1/API_SVC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sapling

Sapling is a HR application for mid-sized companies to automate and elevate their employee experience, with deep integrations with all the google applications your team already knows and loves.

System Requirements

Getting Started

  • Add your ssh keys in your Git Profile
  • Clone repo and open project folder from terminal
    • git clone git@github.com:sapling-hr/api-svc.git
    • cd api-svc
  • Run bundle install to install all dependencies
  • Setup development environment (https://saplinghr.atlassian.net/wiki/spaces/TB/pages/1031241966/How+to+setup+Dev+Env)
  • Update Application.yml with your postgres keys
  • Add 127.0.0.1 rocketship.sapling.localhost in hosts file
  • Start sidekiq sidekiq
  • Setup database
    • Run RAILS_ENV=development rake db:create
    • Run RAILS_ENV=development rake db:migrate
    • Run RAILS_ENV=development rake db:seed
  • Run server rails s -b 0.0.0.0

Built With

Integrations

How to Run Test Suite

Test cases are written using rspec and capabara. All the test cases are tested by CircleCi for every branch that is pushed to Sapling's github repository.

Anyone how want to run it localy can use following process:

  1. To prepare test database run this:
    • rake db:test:prepare
  2. To run all the test cases use this:
    • rspec

Services

  • CloudFlare
  • Puma
  • Nginx
  • CloudClimate
  • CircleCi
  • Google-SSO
  • One-Login

Search Engines

  • Algolia

Jobs Queues

  • Sidekiq
  • Whenever

Deployment Instructions

Following are the steps to add new ssh key to any server:

  1. Open ssh folder ~/.ssh
  2. Open id_rsa.pub file
  3. Copy content of public file
  4. Go to the project Sapling folder from terminal
  5. Login to the server ssh deployer@
  6. Open ssh folder using command cd .ssh
  7. Open authorized_keys file using command nano authorized_keys
  8. Add new key at the end of file
  9. Save the file and now server can be accessed using new key

To Run Deployment

Requirement
Commands
  • cap <environment> deploy

Best Practices

Recommended guide for development

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors