Skip to content

CapituloJaverianoACM/acm-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xaverian ACM Student Chapter – API

This is the official API for the Xaverian ACM Student Chapter. It provides endpoints for managing entities related to the chapter’s website, such as members, users, activities, and authentication.

📚 API Documentation

You can explore the available endpoints using the Swagger interface:

GET /swagger

Open it in your browser at:
http://localhost:<PORT>/swagger


🚀 Getting Started

✅ Prerequisites

  • Docker.
  • (Optional) Bun if you want to run it locally without Docker.

🔧 Local Development (with Bun)

bun install
bun run dev

The API will be available at:
http://localhost:<PORT>


🐳 Running with Docker

Build the image:

docker build -t acm-api .

Run the container:

docker run --env-file .env -p <PORT>:<PORT> acm-api

Test it:

curl http://localhost:<PORT>/ping

⚙️ Dockerfile Overview

This Dockerfile uses a multi-stage build with Bun and a Distroless image for production.

  • Installs dependencies with Bun.
  • Runs automated tests during build.
  • Compiles the app to a single executable using Bun.
  • Produces a lightweight, secure image with no shell or unnecessary packages.

📦 Tech Stack

  • Bun – Fast JavaScript runtime
  • Elysia.js – Web framework
  • Swagger – API documentation
  • Docker + Distroless – Minimal and secure production containers

👥 Developers

About

Web API for Xaverian ACM Student chapter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •