Basic-Dockerize-Nodejs-Backend

This repository provides a basic setup for a Node.js backend application that is Dockerized.

Setup

Linux ve macOS:

git clone https://github.com/HasancanCakicioglu/Basic-Dockerize-Nodejs-Backend.git
cd Basic-Dockerize-Nodejs-Backend
npm install

Windows:

cd Basic-Dockerize-Nodejs-Backend
npm install

Run:

npm start

The setup includes the following components:

  • Node.js runtime environment
  • Express.js framework
  • Nodemon for automatic restart of the server on code changes
  • Dockerfile for building the Docker image
  • docker-compose.yml for setting up the development environment

Prerequisites

Make sure that you have Docker and docker-compose installed on your machine before you proceed.

Getting Started

To get started, clone this repository to your local machine: