Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/webong/backend-docker-sample
- Owner: webong
- Created: 2019-10-01T21:50:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T11:53:52.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T06:10:10.027Z (over 1 year ago)
- Language: JavaScript
- Size: 503 KB
- Stars: 0
- Watchers: 1
- Forks: 5
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
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.