Production-ready TypeScript REST and WebSocket server, deployable to a Linux server (e.g., DigitalOcean) with systemd.
- TypeScript, Express, WebSocket (
ws) .env-driven configuration- Systemd service for production deployment
- ESLint and strict typing for code quality
- Future-proof for CI/CD and further expansion
-
Install dependencies:
npm install
-
Create your local environment file:
cp .env.example .env
Modify
.envas needed. -
Run the development server:
npm run dev
The server will be available at
http://localhost:8080(or your configuredPORT).
-
Build the project:
npm run build
-
Run the production server:
node build/server.js
This is the command that the
systemdservice will run on your server.
MIT