Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonybudd/assemblyscript-api-boilerplate
https://github.com/anthonybudd/assemblyscript-api-boilerplate
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/anthonybudd/assemblyscript-api-boilerplate
- Owner: anthonybudd
- License: apache-2.0
- Created: 2024-05-09T21:34:06.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-12T05:03:44.000Z (8 months ago)
- Last Synced: 2024-11-07T16:12:01.651Z (about 2 months ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AssemblyScript API Boilerplate
An experiment building a REST API using WASM. I'm not sure this is the correct use of this technology.
Code taken from [deislabs/wagi](https://github.com/deislabs/wagi) and [deislabs/hello-wagi-as](https://github.com/deislabs/hello-wagi-as)
### Set-up
```sh
git clone https://github.com/anthonybudd/AssemblyScript-API-Boilerplate.git
cd AssemblyScript-API-Boilerplate
npm i
npm run build# Download correct WAGI binary to ./binary for your platform: https://github.com/deislabs/wagi/releases
# Mac
npm run download-binary:macnpm run serve
curl localhost:3000
```### Routes
| Method | Route | Description | Payload | Response |
| ----------- | ------------------- | ------------------------------------- | ------------------------------------- | ----------------- |
| **DevOps** | | | | |
| GET | `/_readiness` | Kuber readiness check | -- | `healthy` |
| **Demo Route** | | | | |
| GET | `/` | An example route | -- | `Welcome to the AssemblyScript REST API!` |