This is a template repository for building and deploying a WavyNode integration.
This project uses a .env file for environment variables. A template file, .env.template, is provided.
-
Create a
.envfile:cp .env.template .env
-
Update the
.envfile with your specific configuration.
To start the development server, run the following command:
bun run devTo build the application for production, run the following command:
Alternatively, you can just build the Dockerimage and deploy it
bun run buildThis will create a .output directory with the production-ready server.
This integration has two base routes:
- A webhook route (
/webhook) - A users API endpoint (
/users)
server/: The main directory for your application logic.middleware/: Contains your server middleware.routes/: Contains your API routes.
types/: Contains your TypeScript type definitions.nitro.config.ts: The configuration file for Nitro.package.json: The project's dependencies and scripts.