A simple Node.js backend for managing contacts. Includes Docker and Docker Compose setup.
- RESTful API for contacts
- SQLite database (
contacts.db) - Dockerized for easy deployment
- Node.js
- Docker & Docker Compose
- Install dependencies:
npm install
- Start the server:
node app.js
- Build and run with Docker Compose:
docker-compose up --build
- The app will be available at
http://localhost:3000
app.js
contacts.db
package.json
seed.js
config/
db.js
controllers/
contactsController.js
routes/
contacts.js
GET /contacts- List all contactsPOST /contacts- Add a new contactPUT /contacts/:id- Update a contactDELETE /contacts/:id- Delete a contact
MIT