Giter VIP home page Giter VIP logo

bexh-api-aws-lambda's Introduction

bexh-api-aws-lambda

Project setup:

Virtual environment setup:

pip3 install pipenv
pipenv shell --python 3.8

Install pipfile libraries:

make install-dev

Set up interpreter:

1. Go to PyCharm > Settings > Project:bexh-api-aws-lambda > Project Interpreter

2. Select ... to the right of the option and select add...

3. Select existing environment

4. Select the python file as per your virtual environment which can be found in terminal using:
    
    which python

5. Apply, OK

Configure Local Infra

Set up mysql and aws localstack containers and set up db tables:

make docker-up
make local-setup

Configuring .env File

1. Go to Preferences > Plugins andinstall the EnvFile plugin

2. Restart PyCharm

Running the Project

1. Open /service.py and hit the play button on the left hand side which will
use /event.json as the event to your function

2. Double check that working directory is set to your path to bexh-api-aws-lambda

2. At the top right of the screen, drop down the service python configuration
and select "edit configurations..."

3. Select the EnvFile tab at the top, enable EnvFile, add new env file, and select .env

4. Apply, OK

Configuring new routes

Locate the examples in /controllers.py

Help

Make Targets:

Commands:
    clean          Cleans venv and package from old builds
    build          Bundle package for deployment
    test           Runs all test cases
    install        Installs pipfile libraries
    install-dev    Installs pipfile libraries for development purposes
    docker-up      Spins up localstack and mysql containers for local development
    docker-down    Spins down containers for local development
    local-setup    Creates a mysql instance and creates tables

bexh-api-aws-lambda's People

Contributors

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