serverless-prisma

by jgeschwendt

jgeschwendt / serverless-prisma

AWS Serverless Prisma Boilerplate

127 Stars 9 Forks Last release: Not found 1.2K Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Serverless Prisma

Build Status

[Archived] — New projects should consider using Prisma2

Minimal Serverless + Prisma Project Template

Getting Started

  • Be sure to have

    Docker
    and
    Make
    installed on your machine.
    Docker
    is used for maintaining a consistent development/deployment environment;
    Make
    is used to shorten frequently used
    Docker
    commands.
  • Create an

    .env
    file for your local machine (refer to
    ~/.env.example
    for the configuration requirements)
  • Create Environment configurations for deployments, ie.

    .env.dev
    ,
    .env.prod
    , alternatively this can be configured in your CI/CD.
# Create a Node Development Docker Container

make devbox

Install Node Dependencies using the DevBox Container

make install

Start Serverless in Offline Mode

make start

Package Service for Deployment

make build

Deploy to a specific Environment

ENV=dev make deploy # uses the configuration from .env.dev

ENV=prod make deploy # uses the configuration from .env.prod

The complete command list can be viewed in the

~/Makefile

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.