An open API service indexing awesome lists of open source software.

https://github.com/thothom/example-dynamodb

Example project for @thothom/dynamodb
https://github.com/thothom/example-dynamodb

thothom

Last synced: over 1 year ago
JSON representation

Example project for @thothom/dynamodb

Awesome Lists containing this project

README

          

# ThothOM DynamoDB Example

[![Style Guide: Techmmunity](https://img.shields.io/badge/style%20guide-TECHMMUNITY-01d2ce?style=for-the-badge)](https://github.com/techmmunity/eslint-config)

Example project of `@thothom/dynamodb`.

See the docs at: [https://thothom.com/docs/plugins/dynamodb](https://thothom.com/docs/plugins/dynamodb)

## How to test

- Run `yarn` to install the dependencies
- Create a `.env` file based on `.env.sample`
- Add the AWS env vars to `.env` file
- Create a table `example` with the primary key `id` at AWS DynamoDB
- Run `yarn start` to start the app
- Done! You can start to play now :)

| Route | Method | Description |
| ----------------------- | -------- | ----------- |
| `http://localhost:3000` | `POST` | Create |
| `http://localhost:3000` | `PUT` | Update |
| `http://localhost:3000` | `GET` | List |
| `http://localhost:3000` | `DELETE` | Delete |