A TO-DO application built with Serverless framework and running on AWS Serverless platform.
- This application allows creating/removing/updating/fetching TODO items.
- Each TODO item can optionally have an attachment image.
- Each user only has access to TODO items that he/she has created.
The application stores TODO items, and each TODO item contains the following fields:
todoId
(string) - a unique id for an itemcreatedAt
(string) - date and time when an item was createdname
(string) - name of a TODO item (e.g. "Change a light bulb")dueDate
(string) - date and time by which an item should be completeddone
(boolean) - true if an item was completed, false otherwiseattachmentUrl
(string) (optional) - a URL pointing to an image attached to a TODO item
- Opened AWS account
- npm installed
- Serverless installed
To enable authentication in the application, you will have to create an Auth0 application and copy "domain" and "client id" to the config.ts
file in the client
folder.
We recommend using asymmetrically encrypted JWT tokens.
To deploy the backend run the following commands:
cd backend
npm install
serverless deploy -v
To run the client application first edit the client/src/config.ts
file to set correct parameters.
And then run the following commands:
cd client
npm install
npm run start
This will start a development server with the React application that will interact with the serverless TODO application.
An alternative way to test your API, you can use the Postman collection that contains sample requests. You can find a Postman collection in this project. To import this collection, do the following.
Click on the import button:
Click on the "Choose Files":
Select a file to import:
Right click on the imported collection to set variables for the collection:
Provide variables for the collection (similarly to how this was done in the course):