A basic REST API built with Express.js
- Node.js 20.x
- npm 9.x+
- Clone the repository
git clone <repository-url>- Install dependencies
npm install- Run the application
npm start| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health | Health check endpoint |
| GET | /api/users | Get all users |
| POST | /api/users | Create a new user |
Build the image:
docker build -t simple-node-api .Run the container:
docker run -p 3000:3000 simple-node-apiThe project includes a GitHub Actions workflow that can be triggered manually to:
- Build the application
- Create an artifact
- Upload the artifact to GitHub
To trigger the workflow, go to the "Actions" tab in your GitHub repository and select "Build and Package" workflow.