Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.15 KB

Readme.md

File metadata and controls

50 lines (32 loc) · 1.15 KB

AWS Serverless API with Fauna

This project provides a serverless API for managing an inventory system, built with AWS Lambda and Fauna. It allows basic CRUD operations on inventory items including creation, reading, updating, and deletion.

Following the tutorial for this project here.

Requirements

Setup

  • Clone the repository
  • Install dependencies with npm install
  • Setup Fauna account and create a database

Usage

The API provides the following endpoints:

  • Create Inventory Item: POST / - Adds a new item to the inventory.

  • Read All Inventory Items: GET / - Retrieves all items from the inventory.

  • Read Specific Inventory Item: GET /{id} - Retrieves a specific item by its ID.

  • Update Inventory Item: PUT /{id} - Updates the details of a specific item.

  • Delete Inventory Item: DELETE /{id} - Removes an item from the inventory.

Local Development

serverless offline

Deployment

serverless deploy