Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webong/backend-docker-sample

A Nodejs Backend App with Docker
https://github.com/webong/backend-docker-sample

Last synced: 7 days ago
JSON representation

A Nodejs Backend App with Docker

Awesome Lists containing this project

README

        

# backend-docker-sample

This project is created to help learn docker configurations for backend projects.

# Prerequisites

Install [node](https://nodejs.org/en/download/).

Example node install instructions for LTS node 10.x:
```
curl -sL https://deb.nodesource.com/setup_10.x | bash
sudo apt install -y nodejs
```

Install all packages with `npm install`

# Starting in production mode
Notice, that not everything is necessary for all the exercises.

## Starting project

To start the server in production mode: `npm start`

Test that the project is running by going to

## Accepting connections

If your frontend is not running in the same origin, run the server with `FRONT_URL= npm start` (without < >) to allow cross-origin requests.