A simple rest API service where users can get, post and delete messages. The messages received will be checked for palindrome and stored in the local database.
-
url: http:<base_url>:3000/
- method: Get --> action: Lists all messages (UI)
-
url: http:<base_url>:3000/api/list
- method: Get --> action: Lists all messages
- method: Post --> action: Adds an entry [HTTP Body: name(String), message(String)]
-
url: http:<base_url>:3000/api/:message_id
- method: Get --> action: Returns the selected message
- method: Delete --> action: Deletes an entry
- Install [docker-ce] (https://github.com/docker/docker-ce) & [docker-compose] (https://github.com/docker/compose)
- run
docker-compose up
- Update AWS Access Keys & region in config.json
- run
node awscreateinstance.js