aulvi / bookmark-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bookmark-service

Requirements

Initial setup & deployment

Prepare the infrastructure

  1. Create an S3 bucket
aws s3 mb s3://bookmark-service-infra-adamulvi
  1. Edit infra/deploy.sh and set the Configuration options to match your environment

  2. Run make infrastructure to deploy the infrastructure

Deploy the application

  1. Add a git remote and point it at the CodeCommit repo created by make infra.
  2. git push your changes and the pipeline should kick off a build

Local development

** Run unit tests

make test

Invoking function locally through local API Gateway

make dev

or

sam local start-api

Invoking function locally using a local sample payload

sam local invoke HelloWorldFunction --event event.json

Running the Swagger editor

  1. Start the service
make swagger-start
  1. Point your browser to http://0.0.0.0:8080

  2. When done, stop the service

make swagger-stop

About


Languages

Language:TypeScript 38.2%Language:JavaScript 27.2%Language:Shell 23.7%Language:Makefile 10.9%