Git Product home page Git Product logo

monster-as-a-service's Introduction

🧟 Monster As A Service (MAAS)

Netlify Status

This is a microservice wrapping requests to D&D 5e API.

It will return a random monster at every request.

Goal

This repository is an example use-case on how to use Netlify Functions with TypeScript.

Watch the video on Youtube

Deploy your own instance

Deploy MAAS to Netlify

More instructions

If you need help understanding the ins and outs of this code, please refer to the video on ScopeLeak

Packages

Dependencies Why
Netlify Dev¹ To run Netlify Functions locally
Netlify Lambda Adds build-step to Netlify Functions
TypeScript The compiler for TypeScript (tsc)
node-fetch Brings window.fetch api to NodeJS
babel/preset-env Tells Babel which JavaScript syntax to output
babel/preset-typescript Teach Babel to use TypeScript compiler
types/aws-lambda Request/Response types for AWS Lambdas²
encoding depency of node-fetch³

1: Install it globally on your system

2: Netlify Functions uses AWS Lambdas under the hood

3: It should be a dependency of node-fetch but it’s not added in v2, so we add manually so our build doesn‘t break.

monster-as-a-service's People

Contributors

atilafassina avatar ftonato avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.