/prisma-serverless-stack

Starter for Prisma + Serverless-Stack

Primary LanguageJavaScript

Prisma + Serverless-Stack

Sample project to deploy a simple Node.js application with Prisma to Amazon Web Services using Serverless-Stack / Serverless-Bundle.

TypeScript

This template is set up to get started with TypeScript. However, if you need JS only, you can rename the .ts to .js, remove the types, and remove tsconfig.json. Alternatively, you could keep tsconfig.json for better type hints.

Database

Provider

The project is set up to work with a PostgreSQL database. If you would like to change that, head to the schema.prisma and change it.

Connect

At the root of this project, next to your package.json, create an .env file. Insert your database environment variables, they will automatically get deployed. Do not commit this file.

DATABASE_URL=postgres://user:password@host:port/db_name

Deploy

npm run deploy

Hot reload

npm run dev