Skip to content

WARBIRDsOnE/serverless-graphql-api-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless GraphlQL API Example

ko-fi

Example Deployment

A serverless GraphQL API built with TypeScript and MongoDB

The explaination of the API can my found on my blog.

Local Development

The Now CLI will need be downloaded, installed and logged into.

After that create a .env file and add the DB_PATH environment variable with the database URI.

DB_PATH=mongodb://<user>:<password>@ds123456.mlab.com:54321/example-db

Finally run

now dev

Deploying to Zeit

First create a Now Secret with the name serverless-graphql-api-example-dp-path which has the database URI.

now secrets add serverless-graphql-api-example-dp-path "mongodb://root:root1user@ds021356.mlab.com:21356/serverless-graphql-api-example"

Then just deploy!

now

About

A serverless GraphQL API built with TypeScript and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy