GithubHelp home page GithubHelp logo

builder-bootcamp-python-starter-kit's Introduction

builder-bootcamp-python-starter-kit

Requirements

  • AWS CLI already configured with Administrator permission
  • Git installed and configured
  • Python 3.8. You can install this with Pyenv.
    # e.g. to use python 3.8 in the get lambda
    pyenv install 3.8.0
    cd src/get
    pipenv --python ~/.pyenv/versions/3.8.0/bin/python3.8
    
  • Pipenv installed
  • Docker installed

Initial setup & deployment

Prepare the infrastructure

  1. Create an S3 bucket
aws s3 mb s3://bootcamp-starter-kit-$USER
  1. Deploy the infrastructure
make infra

Deploy the application

  1. Add a new git remote and point it at the CodeCommit repo created by make infra
git remote add codecommit <codecommit-clone-url-http>
  1. Push your changes and the pipeline should kick off a build
git push -u codecommit master

Local development

Requirements

  • AWS CLI
  • Python 3.8. You can install this with Pyenv.
    # e.g. to use python 3.8 in the get lambda
    pyenv install 3.8.0
    cd src/get
    pipenv --python ~/.pyenv/versions/3.8.0/bin/python3.8
    
  • Pipenv installed
  • Docker installed

Please refer to the troubleshooting section for help with setting up authentication and authorization

Run unit tests

  1. Run the unit tests
make test
  1. Hope they work!

Start the local dev server

  1. Install npm dependencies
pipenv install
  1. Start up the dev server
make dev
  1. Write code, it will be automatically recompiled on save.

  2. Test your work at the address returned

Troubleshooting

If you face the The requested URL returned error: 403 error while performing git operations:

  1. Check if your AWS account user being used has the following 3 permissions:

    1. AWSCodeCommitFullAccess
    2. AWSCodeCommitPowerUser
    3. AWSCodeCommitReadOnly
  2. Make sure git credentials are setup properly as described here

builder-bootcamp-python-starter-kit's People

Contributors

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