Skip to content

🛰️ REST API and CRUD endpoints (AWS Lambda, API Gateway), Data persistence (AWS DynamoDB), Message Queues for cross-service communication (AWS SQS), Scheduled event triggers (AWS EventBridge), Cloud stack management (AWS CloudFormation), Object storage on the cloud (AWS S3), Email notifications (AWS SES), Middleware, Authentication and Authoriza…

Notifications You must be signed in to change notification settings

gusttavonl/serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 

Repository files navigation

serverless

🛰️ REST API and CRUD endpoints (AWS Lambda, API Gateway), Data persistence (AWS DynamoDB), Message Queues for cross-service communication (AWS SQS), Scheduled event triggers (AWS EventBridge), Cloud stack management (AWS CloudFormation), Object storage on the cloud (AWS S3), Email notifications (AWS SES), Middleware, Authentication and Authorization (Lambda Authorizer), Data validation and error handling.

How use serverless

npm install -g serverless

How Create Project Serverless

sls create --name YOUR_PROJECT_NAME --template-url https://github.com/GustavoNoronha0/serverlessbase

cd YOUR_PROJECT_NAME`

npm install

How Create Project Deploy

sls deploy -v

How view process events

sls logs -f processName

With time between logs

sls logs -f processName --startTime 1m

Getting started Auth

Clone the repository (or generate a serverless project)

sls create --name auth-service --template-url https://github.com/GustavoNoronha0/serverless-auth
cd auth-service

Install dependencies

npm install

Deploy

sls deploy -v

Final test

To make sure everything works, send a POST request (using curl, Postman etc.) to your private endpoint.

You can grab a test token from Auth0. Make sure to provide your token in the headers like so:

"Authorization": "Bearer YOUR_TOKEN"

About

🛰️ REST API and CRUD endpoints (AWS Lambda, API Gateway), Data persistence (AWS DynamoDB), Message Queues for cross-service communication (AWS SQS), Scheduled event triggers (AWS EventBridge), Cloud stack management (AWS CloudFormation), Object storage on the cloud (AWS S3), Email notifications (AWS SES), Middleware, Authentication and Authoriza…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published