forked from mappum/0x10code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# 0x10co.de - Makes sharing 0x10c code easy! | ||
|
||
Uses MongoDB and Express. | ||
|
||
Make sure you have nodejs, mongodb and npm installed on your machine. | ||
|
||
## Install Software | ||
|
||
### Ubuntu/Debian | ||
|
||
sudo apt-get install nodejs mongodb | ||
|
||
### Other Distros. | ||
|
||
Install or compile Node.JS (http://nodejs.org/) and MongoDB (http://www.mongodb.org/) | ||
|
||
### Install Node Package Manager | ||
|
||
Obviously skip this if you already have npm installed | ||
|
||
curl http://npmjs.org/install.sh | sudo sh | ||
|
||
### Install Required Node.JS Packages | ||
|
||
npm install | ||
|
||
### Configure | ||
|
||
Copy the example configuration and modify to suit your environment (if needed). | ||
|
||
cp config_example.js config.js | ||
vim config.js | ||
|
||
## Run | ||
|
||
node app.js | ||
|
||
## Setup as Ubuntu Upstart Service | ||
|
||
This service example uses supervisor to keep the process alive. | ||
|
||
sudo npm install supervisor -g | ||
sudo cp ubuntu.upstart.conf /etc/init/0x10code.conf | ||
sudo vim /etc/init/0x10code.conf | ||
|
||
Modify the server path and the execution user accordingly. You will now be able to start/top the server using: | ||
|
||
start 0x10code | ||
stop 0x10code | ||
|
||
The default setup is to start the server automatically upon server startup. You can change these instructions in the 0x10code.conf file. |