Radws
Rapid application development without servers
Getting Started
To use radws, install the node module:
npm install --save radws@latest
Create a radws app using the generators in generator-radws
Dev Server
You can use the dev server to test your routes and handlers locally before deploying to AWS.
npm run radws-dev-server
Then, connect to http://localhost:3000
And try the API explorer at http://localhost:3000/api_explorer
Document
const Document = ;const uuid = ; const Article = Document region: 'us-east-1' accessKeyId: 'YOUR_ACCESS_KEY_ID' secretAccessKey: 'YOUR_SECRET_ACCESS_KEY' tableName: 'Articles' partitionKey: 'ID' partitionKeyGenerator: uuid timestamps: true; Article;
.all(filters)
.find(identifier)
.create(attributes)
.update(identifier, attributes)
.destroy(identifier)
Resource
const Resource = ;const Article = ; // GET /articles/:idexportsshow = Resource;