Skip to content

alpha-bytes/zs50-faker

Repository files navigation

zs50-faker

Serving fake data for ZS50 since 2019.

Usage

This repo contains source files which are served (after build step) as Lambda functions on Netlify. faker is utilized to generate the random data.

Testing Locally

The package.json file contains an npm script serve that can be used to test functions on a local server. This command first runs tsc to transpile Typescript src to js. Then, it calls the netlify-lambda cli to build the minified source to run. These build files should not be committed to source control and have been .gitignored.

Deploying Changes

New or changed source files must first be compiled to js via the tsc command. This will compile to the build/src/js folder. From there, simply commit and push a new commit to this repo's master branch. Netlify is integrated to this repo and will automatically pick up the changes, and build the end-of-chain functions. Netlify's build commands are controlled via the netlify.toml config file.

About

Simple Lambda functions to serve fake data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published