Skip to content

thienntb/eks-with-circleci

Repository files navigation

thienntb

Hello World Application

Built With

Local Environment Requirements

  1. Install Python3.9, can be downloaded here Note: Do not install via brew
  2. Install NPM, can be downloaded here
  3. Verify Python3 added to PATH

Local Development

  1. Create virtual environment within your repository directory:
    python3 -m venv ./python_env
    
  2. Activate your virtual environment:
    source ./python_env/bin/activate
    
  3. Install pip dependencies
    pip install -r requirements.txt
    
  4. Make install
    make install
    
  5. Docker build
    docker build . -t YOUR_TAG
    
  6. Docker run
    docker run -d -p 5000:5000 YOUR_TAG
    
  7. We gonna create docker-compose.yml later

Run Unit Tests

source venv/bin/activate
pip install pytest pytest-cov
pip install -r requirements.txt
ENV=test pytest --cov ./src --cov-report html --cov-fail-under 95 tests/ -v

Or

make install
make test

License

License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published