Skip to content

Windows installation

petermrg edited this page Feb 22, 2013 · 5 revisions

Install Node.js

Node.js Windows Installer

Install MySQL Server

MySQL Windows Installer.

  • If you don't want to create an account, select "No thanks, just start my download."
  • MySQL requires .NET Framework 4.

Installation details

  • Setup Type:
    • Server Only. Everything else is not required
  • Configuration:
    • TCP/IP Networking: enabled
    • Advanced configuration: set a Root Account Password

Setup database

  1. Open a console, go to MySQL bin directory (%program files%\MySQL\MySQL Server x.x\bin).
  2. Create a database. Enter the following commands:
mysql -uroot -p
create database enode;
quit;
  1. Create database tables.
mysql -uroot -p enode < C:\enode.sql

Setup eNode

  1. Download from https://github.com/petermrg/eNode as zip or clone git repository.
  2. Edit file enode.config.js with a code editor like Notepad++. You should change the following:
    • address: your server's IPv4 address.
    • TCP port: the TCP port you want to use.
    • UDP port: should be TCP+4.
    • MySQL user and pass: if you followed this guide, user name is root and the password is the one you selected during MySQL installation.

Install required Node.js modules

  1. Open a console and go to the directory where eNode is located.
  2. Execute the following commands:
npm install bigint
npm install tinylogger
npm install mysql
npm install hexy

Execute eNode!

  1. Open a console and go to the directory where eNode is located.
  2. Execute the following command: node enode.js

Console image

Clone this wiki locally