Giter Club home page Giter Club logo

serverlesstodolist's Introduction

To-do list using serverless

This project aims to recreate the To-do list that was developed in the "Conceito do Node JS" challenge, using the knowledge of the Serverless module from the NodeJs trail. Challenge Link

Used libraries:

  • Typescript
  • Serverless
  • Serverless-offline
  • Serverless-webpack
  • Serverless-dynamodb-local
  • Webpack
  • Aws Lambda

Get started with installation:

Clone the project and run the following command to download dependencies:

Yarn:

yarn

Then run the following command to install dynamodb locally:

yarn serverless dynamodb install 

With dynamodb installed on your local machine, enter the following command to run the database locally.

yarn serverless dynamodb start
#ou
yarn dynamodb:start

With the database already running on your machine, type the following command to be able to run the application:

yarn serverless offline
#ou
yarn dev

Create To-do: POST

http://localhost:3000/dev/todo/{user_id}/create

Payload:

{
	"id": "e6ee0b87-9776-4031-828e-59d09fb14a71",
	"title": "foo bar",
	"done": false,
	"deadline": "2021-10-13 20:34"
}

Show To-do: GET

http://localhost:3000/dev/todo/{user_id}/show

OutPut:

{
  "Todo": [
    {
      "id": "e6ee0b87-9776-4031-828e-59d09fb14a71",
      "user_id": "b3b8ab9f-2a6f-4d1d-ab7f-6bd759799260",
      "title": "foo bar",
      "done": true,
      "deadline": "2021-10-13 20:34"
    }
  ]
}

serverlesstodolist's People

Contributors

renatops1991 avatar

Watchers

James Cloos avatar  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.