https://github.com/nhost/functions
https://github.com/nhost/functions
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nhost/functions
- Owner: nhost
- License: mit
- Created: 2022-06-21T12:44:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-16T15:29:10.000Z (11 months ago)
- Last Synced: 2025-02-13T13:19:32.248Z (10 months ago)
- Language: Dockerfile
- Size: 82 KB
- Stars: 6
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nhost functions in Docker
## Features
- Hot reload of package.json, lock files, and the functions directory
- Accepts both JavaScript and TypeScript
- Create a package.json file if missing
- Customisable custom package manager (pnpm by default)
- No need to add the Express dependency anymore
## Example
```sh
cd example
cp .env.example .env
# Full Nhost
docker-compose up
# Or only functions
docker-compose up functions traefik
```
## Create a new version
Create a GitHub release, with a new semver tag prefixed with `v`, for instance `v0.1.2`
## Note
I've added a package.json file to make my IDE happy when developing inside `server.ts`. Just note: The npm packages in `package.json` is **only** for development. You need to update the packages in `Dockerfile` for them to be used in the docker image.