Skip to content

memory-shuffle/FrameTrail-CodeSnippet-Repository

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published