Skip to content

nitzpo/kesher-backend

 
 

Repository files navigation

kesher-service

Cloned from the template-business-service at: 2021-04-04 08:36:33
Last updated at: 2021-04-04 08:36:33

Prerequisite installation

You should install the following tools before starting to work

  1. Install Python 3.7.+
  2. Install pipenv for python dependency management
  • zsh shell (MacOS):
    pip install pipenv
    echo export PIPENV_VENV_IN_PROJECT=true >> ~/.zshrc
  • bash shell (Linux):
    pip install pipenv
    echo export PIPENV_VENV_IN_PROJECT=true >> ~/.bashrc
  1. Install AWS SAM
    brew tap aws/tap
    brew install aws-sam-cli
  2. Node.js download and install from: https://nodejs.org/en/download Then configure npm proxy
  3. Install AWS CDK
    npm install -g aws-cdk

Getting started

  1. Use "Self-Service" Jenkins job in order to create template job and repository

  2. Load your github.com ssh key in order to resolve dependencies next step

    ssh-add ~/.ssh/id_rsa
  3. Install dependencies

    pipenv install --dev 
  4. Enter virtual env by:

    pipenv shell 
  5. Retrieve AWS token for one day, execute the following:

    saml2aws login

    For more info go to https://github.com/Versent/saml2aws

Deploy

In order to deploy infra-library CloudFormation stack resources for example: KMS, S3

python deploy.py

Clean deployment, will remove the old stack from CloudFormation

python deploy.py --clean

Destroy

In order to delete the CloudFormation stack deployed in the last step:

python env_destroy.py

Pylint

Execute lint on your code:

pylint <root-package/filename> -E

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.8%
  • Gherkin 10.2%