Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
htdocs
.gitignore
README.md
package.json
restAPI.js
server.js

README.md

FrameTrail CodeSnippetRepository

Installation

  1. Install NodeJS
  2. Install MySQL
  3. In MySQL (eg via phpMyAdmin), add a new database and a new user, with privileges to that database (note down database name, user name and password)
  4. Go to Terminal, and change into the directory of this file (README.md).
  5. Run the command $ npm install
  6. Edit the file package.json with your favorite text editor. You have to adjust the config part
"config": {
  "port": 3000,
  "admin-password": "freund",
  "debug": true,
  "db-host": "localhost",
  "db-port": null,
  "db-user": "codesnippets",
  "db-password": "Joscha123!",
  "db-database": "codesnippets"
}
  1. Run the command $ npm start
  2. Go to browser (in this case http://localhost:3000)

Setup production environment

To run NodeJS apps within an Apache server, use something like this http://www.codingtricks.biz/run-nodejs-application-apache/

To run the app as a system service, use systemd or alike: https://thomashunter.name/blog/running-a-node-js-process-on-debian-as-a-systemd-service/

You can’t perform that action at this time.