mirror of
https://github.com/LukeHagar/appwrite-starter-function.git
synced 2025-12-09 20:37:46 +00:00
split funcs
This commit is contained in:
48
functions/node/README.md
Normal file
48
functions/node/README.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# ⚡ Node.js Starter Function
|
||||
|
||||
A simple starter function. Edit `src/main.js` to get started and create something awesome! 🚀
|
||||
|
||||
## 🧰 Usage
|
||||
|
||||
### GET /
|
||||
|
||||
- Returns a "Hello, World!" message.
|
||||
|
||||
**Response**
|
||||
|
||||
Sample `200` Response:
|
||||
|
||||
```text
|
||||
Hello, World!
|
||||
```
|
||||
|
||||
### POST, PUT, PATCH, DELETE /
|
||||
|
||||
- Returns a "Learn More" JSON response.
|
||||
|
||||
**Response**
|
||||
|
||||
Sample `200` Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"motto": "Build like a team of hundreds_",
|
||||
"learn": "https://appwrite.io/docs",
|
||||
"connect": "https://appwrite.io/discord",
|
||||
"getInspired": "https://builtwith.appwrite.io"
|
||||
}
|
||||
```
|
||||
|
||||
## ⚙️ Configuration
|
||||
|
||||
| Setting | Value |
|
||||
|-------------------|---------------|
|
||||
| Runtime | Node (18.0) |
|
||||
| Entrypoint | `src/main.js` |
|
||||
| Build Commands | `npm install` |
|
||||
| Permissions | `any` |
|
||||
| Timeout (Seconds) | 15 |
|
||||
|
||||
## 🔒 Environment Variables
|
||||
|
||||
No environment variables required.
|
||||
Reference in New Issue
Block a user