| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample implements a complete Node.js application. Notable features:
Note: All commands entered need to be performed from within this directory.
Install MongoDB if necessary (see http://docs.mongodb.org/manual/installation/ )
Ensure you have a clean directory to dedicate as to a database (e.g. C:\imageboard or ~/imageboard/).
From this repository's imageboard directory, run the following command to launch the MongoDB process.
<MONGO_INSTALL_DIRECTORY>/bin/mongod --dbpath <PATH_TO_DB_DIRECTORY>From this repository's imageboard directory, restore the sample app data to MongoDB in another command prompt with the following command:
<MONGO_INSTALL_DIRECTORY>/bin/mongorestore dumpFrom this imageboard directory, install the app's node dependencies, tsd, and typings with the following commands:
npm install
npm install -g tsd
tsd installSome things to note:
Compile the app with the following command:
tscThe above command will use tsconfig.json to compile all necessary files.
Launch the Node process to serve the app using the following command:
node app.jsOpen your favorite browser and navigating to http://localhost:3000/ to access the app.
| Back | FazBrowse Home | New Git URL |