Am Alert is a notification service for IoT applications that allows sending alerts from various devices to users quickly and conveniently.
- SvelteKit – Frontend Framework
- Drizzle ORM – Type-safe ORM for database
- Create a
.env
file or set up the necessary environment variables.
PUBLIC_URL=<Site Domain>
# Database
DATABASE_URL=postgres://<username>:<password>@<host>:5432/<database>
# Login
JWT_SECRET=<Login JWT Secret>
# API
API_JWT_SECRET=<API JWT Secret>
# Subscription
PUBLIC_VAPID_KEY=
PRIVATE_VAPID_KEY=
ADMIN_EMAIL=<Your email>
- Install the dependencies by running:
npm install
- Initialize PostgreSQL database with Drizzle ORM :
npx drizzle-kit push
- Run the project in development mode:
npm run dev
Follow the SvelteKit – Running in Production guide, and choose the appropriate adapter for your server (such as Node.js, Vercel, Cloudflare, etc.).
💡 If you have suggestions or encounter issues, feel free to create an Issue on the GitHub repository!