Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Vombit/Device_Moving_View

Repository files navigation

NodeJS Docker

Use Node.js

Install

  • Install Node.js v14.x
  • Run npm i to install dependencies

Create file

  • .env (in main directory)
    • DB_HOST = host database (MySql)
    • DB_USER = db username
    • DB_PASS = db password
    • DB_NAME = db name
    • DB_TABLE_NAME = db table name
    • site = webserver host name/ip
    • admin_pass = your password

Finish

  • Run app.js

Use Docker

  • docker-compose up db

  • docker-compose up web

    • or
  • docker-compose up -d (desirable)