Sample project to deploy a simple Node.js application with Prisma to Amazon Web Services using Serverless-Stack / Serverless-Bundle.
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.
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.
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
npm run deploy
npm run dev