Skip to content

Digilab-UI/backend-absensi

Repository files navigation

Contact Backend

A simple Node.js backend for managing contacts. Includes Docker and Docker Compose setup.

Features

  • RESTful API for contacts
  • SQLite database (contacts.db)
  • Dockerized for easy deployment

Getting Started

Prerequisites

  • Node.js
  • Docker & Docker Compose

Local Development

  1. Install dependencies:
    npm install
  2. Start the server:
    node app.js

Using Docker

  1. Build and run with Docker Compose:
    docker-compose up --build
  2. The app will be available at http://localhost:3000

Project Structure

app.js
contacts.db
package.json
seed.js
config/
  db.js
controllers/
  contactsController.js
routes/
  contacts.js

API Endpoints

  • GET /contacts - List all contacts
  • POST /contacts - Add a new contact
  • PUT /contacts/:id - Update a contact
  • DELETE /contacts/:id - Delete a contact

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published