KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
aws-sls-spa-sample-api
★ 11
Open GitHub ↗
Sample of SPA services api.
Download README (.md)
Explore Similar Repositories
VeeamLogParser
:
The Veeam Log Parser extracts Error and Warning Messages from the Veeam File Logs of various Veeam products and services.
wanandroid
:
根据wanandroid开放接口,采用mvvm,android jet
weather-api-nodejs
:
Explore the IBM Weather Company data API using NodeJS
vue-clickout
:
vue clickout事件,轻松解决“点击空白处消失”这种问题
nestJS-RethinkDB-TS_example
:
Example with NestJS framework + RethinkDB basic usage with TypeScript
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
aws-sls-spa-sample-api
?
Download (.md)
# AWS Serverless SPA(Single Page Application) Sample: Backend REST API [](https://circleci.com/gh/nihemak/aws-sls-spa-sample-api/tree/master) [](https://codeclimate.com/github/nihemak/aws-sls-spa-sample-api/maintainability) This is a sample to REST API with Serverless Framework and TypeScript. The repository for sample of infrastructure is [aws-sls-spa-sample-terraform](https://github.com/nihemak/aws-sls-spa-sample-terraform). ## APIs * `POST /todos` : Register todo * `GET /todos` : List todos * `GET /todos/:id` : Get todo * `PUT /todos/:id` : Update todo * `DELETE /todos/:id` : Delete todo ## Getting Started with Docker Clone the Repository: ```bash $ git clone https://github.com/nihemak/aws-sls-spa-sample-api.git sample-spa-api $ cd sample-spa-api ``` Build docker environment and Reset DynamoDB Local tables: ```bash $ npm run docker-build $ npm run docker-up-dev $ npm run docker-reset-tables $ npm run docker-down ``` Invoke serverless-offline in docker environment: ```bash $ npm run docker-up $ npm run docker-offline ``` Try the APIs: ```bash # POST /todos $ curl -X POST http://localhost:3000/v1/todos -H "Content-Type: application/json" --data '{ "text": "foo" }' # GET /todos $ curl http://localhost:3000/v1/todos # GET /todos/:id $ curl http://localhost:3000/v1/todos/:id # PUT /todos/:id $ curl -X PUT http://localhost:3000/v1/todos/:id -H "Content-Type: application/json" --data '{ "text": "bar", "checked": true }' # DELETE /todos/:id $ curl -X DELETE http://localhost:3000/v1/todos/:id ``` Access to DynamoDB Local admin web: http://localhost:8000/ ## Getting Started with AWS See: [aws-sls-spa-sample-terraform](https://github.com/nihemak/aws-sls-spa-sample-terraform).