Skip to content

PhillipsCorey/IoT_CICD_Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT_CICD_2025

📦 Node.js TypeScript Backend

A backend application written in Node.js with TypeScript, using ESLint for linting, Vitest for testing, and Docker for containerization.


🚀 Getting Started

Run the App Locally

  1. Compile the TypeScript files:
npm run build
  1. Start the app:
npm start

By default, the backend runs on port 5001.


🧪 Run Tests with Vitest

Run all tests using Vitest:

npm run test

🧼 Run ESLint

Check your code for linting and style issues:

npm run lint

🐳 Docker

📦 Build Docker Image

Make sure the app is compiled before building the image:

npm run build

Then build the Docker image:

docker build -t your-docker-username/your-app-name:latest .

🚀 Run Docker Container

Run the container and map port 5001:

docker run -d -p 5001:5001 your-docker-username/your-app-name:latest

Your app will be accessible at:
http://localhost:5001


✅ Summary

  • Build: npm run build
  • Test: npm run test
  • Lint: npm run lint
  • Start: npm start
  • Docker build: docker build -t ...
  • Docker run: docker run -d -p 5001:5001 ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 41.6%
  • JavaScript 29.4%
  • Dockerfile 29.0%