- run
npm i
- If you have problems with nodemon run
npm install --global nodemon
- If you are on windows use
start.bat
if you are on linux usestart.sh
- Connect to
http://localhost:8080
(If you have the default config)
If you don't have the possibility to run the server via .bat
or .sh
use nodemon -e js,html,css ./server.js
on terminal
- Go to
config.js
module.exports = {
PORT: '8080',
HTTPS_PORT: '4545',
USE_HTTPS: 'false',
USE_HTTP: 'true'
}
- Edit the 4 configs
- Save, Done!
You need a ssl certificate!
- Delete the demo files in the folder
- Copy your ssl certificates to folder
certificates
- Rename to
certificate
on the 2 files - The certificates needs
.crt
and.key
extensions - Enable the https mode on
config.js
USE_HTTPS: 'true',
- Done!