• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Prisma (Nexus) + Typescript + AWS Serverless Lambda = πŸŽ†

Prisma Serverless

Template for Prisma (Nexus) + Typescript + AWS Serverless Lambda = πŸŽ†

This boilerplate includes:

There's more to come πŸ‘€

Table of contents

Project Structure

.
β”œβ”€β”€ config/                     # Serverless env
β”œβ”€β”€ prisma/                     # Prisma related config & Datamodel
β”œβ”€β”€ src/                        # The magic happens here
β”‚   β”œβ”€β”€ generated/              # Generated prisma schema & client
β”‚   β”œβ”€β”€ permissions/            # Resolvers permissions
β”‚   └── resolvers/              # App resolvers
β”‚       β”œβ”€β”€ Mutation/           # Resolvers mutations
β”‚       └── Query/              # Resolvers queries
β”œβ”€β”€ typings/                    # Typescript generic typings
β”œβ”€β”€ .babelrc                    # babel config
β”œβ”€β”€ .editorconfig               # editor config
β”œβ”€β”€ .eslintrc.js                # eslint config
β”œβ”€β”€ .gitignore                  # git ignore list
β”œβ”€β”€ .nvmrc                      # nvm config
β”œβ”€β”€ .prettierrc                 # Prettier configuration
β”œβ”€β”€ docker-compose.yml          # Docker compose file (for local server)
β”œβ”€β”€ package.json                # build scripts and dependencies
β”œβ”€β”€ README.md                   # This file ;)
β”œβ”€β”€ serverless.yml              # Serverless configuration
β”œβ”€β”€ tsconfig.json               # Typescript configuration
└── yarn.lock                   # yarn lock file

Quickstart

Prerequisites

You'll need a prisma server setup to use this template. You can either create a local prisma server using Docker:

docker-compose up -d

Or deploy to a new prisma demo server:

yarn prisma deploy

Then, create an .env referencing the prisma endpoint:

PRISMA_ENDPOINT="http://localhost:4469/app/dev"
PRISMA_SECRET="PRISMA_SECRET"
APP_SECRET="MY_APP_SECRET"
# install dependencies
yarn install

# Run local lambda http environment (API Gateway simulator)
yarn dev

# Run tests
yarn run test

Deploying

  1. Deploy & Generate the prisma schema based on the datamodel to the prisma server.
# Deploy the schema to the prisma server & generate prisma client & schema
yarn prisma deploy

# Resolvers deployment

# Deploy (development)
yarn deploy:dev

# Deploy (production)
yarn deploy:prod

Help

More Repositories

1

nuxt-shopify

πŸ› Seamless Shopify Buy SDK integration with Nuxt.js.
TypeScript
353
star
2

nuxt-graphql-request

Easy Minimal GraphQL client integration with Nuxt.js.
Vue
192
star
3

bluise

πŸ„ Bluise - A Nuxt.js & Netlify CMS boilerplate.
Vue
171
star
4

bulmil

πŸ’„ A agnostic UI components library based on Web Components, made with Bulma & Stencil.
TypeScript
152
star
5

vue-places

Places component is based on places.js for Vue 2.x. Turn any <input> into an address autocomplete.
JavaScript
108
star
6

vue-embed

Vue 2.x component based on embed.js https://github.com/ritz078/embed.js
JavaScript
59
star
7

fastify-nuxtjs

Vue server side rendering support for Fastify with Nuxt
JavaScript
39
star
8

nuxt-ghost

Easy Ghost content API integration with Nuxt.js.
Vue
31
star
9

nuxt-stencil

Easy Stencil.js component library integration with Nuxt.js.
TypeScript
21
star
10

ui

CSS
5
star
11

sendle-node

Unofficial Node.js library for the Sendle API
TypeScript
4
star
12

cailloux

TypeScript
3
star
13

graphql-ethereum-address

Ethereum address scalar types for GraphQL
TypeScript
3
star
14

spera

Run & schedule your code in the background with a fully typed client
TypeScript
3
star
15

use-relay-pagination

React hook library to assist with GraphQL Relay pagination πŸ„β€β™‚οΈ
TypeScript
1
star
16

insomnia-plugin-user-agents

Insomnia plugin for generating user agents
JavaScript
1
star
17

mirage-iterm

🏝️ A port of the VS Code Mirage theme to iTerm2.
1
star
18

nuxt-dockerfile

🐳 Nuxt Dockerized
Dockerfile
1
star
19

atom-urple-syntax

Atom Urple Syntax theme
CSS
1
star
20

prismate

Just a quick simple boilerplate for prisma2 & apollo-server. Still very WIP
TypeScript
1
star
21

insomnia-plugin-cuid2

Insomnia plugin for generating cuids
JavaScript
1
star
22

vue2-superplaceholder

SuperPlaceholder based on superplaceholder.js for Vue 2.x.
JavaScript
1
star