- Node 8
- Git
Clone the repo and install the dependencies.
git clone https://github.com/quanKM/nodejs-example.git
cd nodejs-example
cp .env.example .env
npm install
or
yarn install
To start the express server, run the following
npm start or yarn start
Open http://localhost:3000 and take a look around.
You can also run this app as a Docker container:
Step 1: Clone the repo
git clone https://github.com/quanKM/nodejs-example.git
Step 2: Build the Docker image
docker build -t nodejs-example .
Step 3: Run the Docker container locally:
docker run -p 3000:3000 -d nodejs-example