https://github.com/stojanovic/amsterdam-facts
A serverless API demo for AmsterdamJS conference
https://github.com/stojanovic/amsterdam-facts
api claudia serverless
Last synced: 3 months ago
JSON representation
A serverless API demo for AmsterdamJS conference
- Host: GitHub
- URL: https://github.com/stojanovic/amsterdam-facts
- Owner: stojanovic
- Created: 2017-06-08T07:42:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T07:42:22.000Z (over 8 years ago)
- Last Synced: 2025-04-05T17:34:38.878Z (7 months ago)
- Topics: api, claudia, serverless
- Language: JavaScript
- Homepage: https://bit.ly/amsterdam-facts
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AmsterdamJS demo - Amsterdam facts
Simple serverless API, built with Claudia.js, that shows 20 facts about Amsterdam. It also allows you to get a random fact and to get a fact by it's ID.
## Source of the facts
I took facts from here, not sure how accurate are they, but they were fun: https://whatsupwithamsterdam.com/fun-facts-amsterdam/.
## How to run the demo
### Prerequisites
- AWS account
- Claudia.js installed globally (not required because it's a part of dev dependencies)
- AWS credentialsGuide for Claudia and credentials: https://claudiajs.com/tutorials/installing.html
### Create an API
- Clone the repository
- Run `npm run create`
- That's it, go to your URL### Update an API
- Run `npm run update`
- That's it, go to your URL again## Live demo
Minified API URL: bit.ly/amsterdam-facts
Full API URL: https://oocgxwew1l.execute-api.eu-central-1.amazonaws.com/latest
Fact by ID: https://oocgxwew1l.execute-api.eu-central-1.amazonaws.com/latest/14
Random fact: https://oocgxwew1l.execute-api.eu-central-1.amazonaws.com/latest/random
## Contribution
This is just a simple demo project, but feel free to send pull requests.