Skip to content

Example of a Newsletter application written in Serverless for PyDay 2020 Neuquen

License

Notifications You must be signed in to change notification settings

rapkyt/serverless-effortless

Repository files navigation

serverless-effortless

Table of Contents

Install

System Requirements

  • Black
  • Git
  • Node & Npm
  • NVM
  • Poetry
  • Pyenv
  • Python
  • Serverless
  • Virtualenv

Setup - Python

# STEP 1:
# NOTE: `pyenv local` Should output -> 3.6.10
$ pyenv local

# STEP 2: Create and activate local virtualenv.
$ virtualenv .venv --python=python3.6

# STEP 3: Install local Python packages.
$ poetry install

Usage

Deploy

NOTE: This would upload all your code (in serverless folder) to lambda functions.

# Configure your AWS Profile
$ serverless config credentials --provider aws --key {{key}} --secret {{secret}} --profile {{profile_name}}

# Copy the .env.dist file and fill the values
$ cp config/.env.dist config/.env.dev
$ cp config/.env.dist config/.env.prod


# NOTE: Deploy
$ serverless deploy --stage {{stage}} --env {{stage}}

# For instance, to deploy on dev: 
$ serverless deploy --stage dev --env dev

Maintainers

Contributing

See the contributing file!

PRs accepted.

About

Example of a Newsletter application written in Serverless for PyDay 2020 Neuquen

Topics

Resources

License

Stars

Watchers

Forks

Languages