serverless-prismaAWS Serverless Prisma Boilerplate
Serverless Prisma
[Archived] — New projects should consider using Prisma2
Minimal Serverless + Prisma Project Template
Getting Started
-  
Be sure to have
DockerandMakeinstalled on your machine.Dockeris used for maintaining a consistent development/deployment environment;Makeis used to shorten frequently usedDockercommands. -  
Create an
.envfile for your local machine (refer to~/.env.examplefor 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
评论
