Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

Expand All @@ -27,20 +25,3 @@ jobs:

- name: Run Tests with Vitest
run: npm run test

- name: Run ESLint
run: npm run lint

# FOR IT TO WORK WITH GITHUB Actions and push to Docker registry do the following
# In your repo settings, go to Settings → Secrets and variables → Actions → Secrets, and add:
# DOCKER_USERNAME – your Docker Hub username
# DOCKER_PASSWORD – a Docker Hub personal access token

# - name: Log in to Docker Hub
# run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

# - name: Build Docker image
# run: docker build -t ${{ secrets.DOCKER_USERNAME }}/iot-app:latest .

# - name: Push Docker image to Docker Hub
# run: docker push ${{ secrets.DOCKER_USERNAME }}/iot-app:latest
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import express, { Request, Response } from "express";

const app = express();
const PORT = process.env.PORT || 5001;
//const PORT = express.PORT || 5001;

// Middleware for parsing JSON
app.use(express.json());
Expand All @@ -12,6 +12,6 @@ app.get("/", (req: Request, res: Response) => {
});

// Start the server
app.listen(PORT, () => {
/*app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});
});*/