https://github.com/webong/backend-docker-sample
A Nodejs Backend App with Docker
https://github.com/webong/backend-docker-sample
Last synced: 2 months 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T11:53:52.000Z (over 2 years ago)
- Last Synced: 2025-04-09T13:41:04.986Z (3 months ago)
- Language: JavaScript
- Size: 503 KB
- Stars: 0
- Watchers: 0
- 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.