Skip to content

A Demo Todo List API with NodeJS, ExpressJS, AWS-SDK & DynamoDB [NodeJS] [Zeer]

Notifications You must be signed in to change notification settings

arijitcodes/demo-api-zeer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo api with NodeJS, ExpressJS, AWS SDK & DynamoDB (Local)


Author: Arijit Banerjee

Technologies Used: NodeJS, ExpressJS, Express-Validator, UUID, Morgan, Helmet, Dotenv, AWS-SDK, DynamoDB


Instruction:

To setup this API, follow the instructions carefully:

  1. Rename the '.env.sample' file into '.env'.

  2. Setup the .env variables in the .env file according to your DynamoDB Configuration.

  3. After that, to setup the Database Tables automatically, run this following command in a terminal:

    npm run setup-table
    
  4. Now you can use the api accordingly.

NOTE: To delete the table after testing the api, run the following command:

npm run delete-table

API Routes:

GET - /api/todos : Get all Todos from DB

GET - /api/todos/:id : Get one Todo item by ID

POST - /api/todos : Create/Post a New Todo item

PUT - /api/todos/:id : Update a Todo item

PATCH - /api/todos/:id : Change 'Completed' Status of a Todo item.

DELETE - /api/todos/:id : Delete a Todo item