-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Ensure you have the following installed before proceeding with the installation:
- Node.js (v14 or higher)
- Docker
- npm (Node Package Manager)
Follow these steps to install and set up NSM:
-
Clone the Repository
git clone https://github.com/ZorTik/node-server-manager
Alternatively, download the latest release from the NSM repository and extract it.
-
Configure Environment Variables Copy the example environment file and fill in the required values:
cp .env.example .env
Open the
.envfile and provide the necessary configuration values. -
Edit Configuration Adjust the default configuration settings in
resources/config.ymlaccording to your requirements. You can also override these settings using environment variables. Detailed information about each configuration option is available within the file. -
Install Dependencies Install the required Node.js packages:
npm install
-
Generate Prisma Client Generate the Prisma client for database interaction:
npx prisma generate
-
Sync Database Schema Apply the database schema migrations:
npx prisma migrate deploy
-
Build the Project Compile the project for production:
npm run build
To start the NSM service, use the following command:
npm startThis will launch the NSM server, making it ready to handle requests and manage services dynamically.