- Directory structure:
client
server
index.js
- Bootstrapped
./index.js
to./server/index.js
- Specified npm package.json
- Installed npm:
sudo npm install
- Implement http server
config.js
: Contains application settings (port + database)http.js
: Starts http server using express
- Install latest io.js
- Install a MySQL database.
- Download code from this repository.
- Import
database.sql
into the MySQL database.- Contains no data!
- Add dummy user and inventory database entries before starting the application.
- Open
server/config.js
:- Enter database credentials.
- Optional Change the HTTP port of the application. 6001 by default.
- Open terminal and navigate to the ScannerSoftware directory.
- Type
node index.js
. Server should be running now. - Open
http://localhost:6001
in a current browser (e. g. Chrome > 30 or Firefox > 35). - To terminate the application type Ctrl+C in terminal.