Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Node.js API

A basic REST API built with Express.js

Prerequisites

  • Node.js 20.x
  • npm 9.x+

Installation

  1. Clone the repository
git clone <repository-url>
  1. Install dependencies
npm install
  1. Run the application
npm start

API Endpoints

Method Endpoint Description
GET /api/health Health check endpoint
GET /api/users Get all users
POST /api/users Create a new user

Docker

Build the image:

docker build -t simple-node-api .

Run the container:

docker run -p 3000:3000 simple-node-api

GitHub Actions

The 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.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages