Sharing Top Content from the Angular-sphere.

Tech Junkie Blog: AngularJS SPA Part 5: Create a MongoDB Configuration File

RT @techjunkiejh #AngularJS SPA Part 5: Create a #MongoDB Configuration File  #js #nodejs

  • Here are the steps:

    dbpath : specifies the path of the data files

    logpath : specifies the path of the log file

    verbose: specifies how verbose we want out log files to be, in this we want our log files to be very verbose we want to log everything.

  • The settings is from v to vvvvv  going from least to most verbose

    4.

  • Save the file,  put the path C:\Program Files\MongoDB\Server\3.4\bin into the Environment Variables “Path” varible, now open up the command line utility  type in the following command to use the configuration file


@CodeIsGo_com: RT @techjunkiejh #AngularJS SPA Part 5: Create a #MongoDB Configuration File #js #nodejs

Tech Junkie Blog: AngularJS SPA Part 5: Create a MongoDB Configuration File

Toggle navigation Tech Junkie Blog

.NET ASP.NET

Entity Framework

ADO.NET

Visual Studio

C#

ASP.NET MVC

ASP.NET Core

Quickstart ASP.NET MVC

Client-Side JavaScript

AngularJS

JQuery

Database Database Home

SQL

SQL Server

T-SQL

Stored Procedures

Infrastructure Linux

Web Design HTML5

CSS

Bootstrap

Graphics Design

Search This Blog

Thursday, March 9, 2017

AngularJS SPA Part 5: Create a MongoDB Configuration File

In the previous blog post be installed mongoDB now, we are going to create a configuration file for mongoDB to use during startup.

In this configuration file we will specify the following:

location of the data files

log file path

the verbosity of the log file

Here are the steps:

Create a folder in your operating systems

create a file call mongo-db-config.config in the folder

Type in the following lines of configuration settings

            dbpath = /techjunkie/mongodb/db

            logpath = /techjunkie/mongodb/mongo-db-server.log

            verbose = vvvvv

         

           dbpath : specifies the path of the data files

           logpath : specifies the path of the log file

           verbose: specifies how verbose we want out log files to be, in this we want our log files to be very verbose we want to log everything.  The settings is from v to vvvvv  going from least to most verbose

         4. Save the file,  put the path C:\Program Files\MongoDB\Server\3.4\bin into the Environment Variables “Path” varible, now open up the command line utility  type in the following command to use the configuration file

            mongod -f c:\techjunkie\mongodb\mongo-db-config.conf

           

        5.  Now you will see a log file has been created in the folder

Posts In The AngularJS SPA Application Series:

Setting Up Angular-Seed

Preparing Angular-Seed For The Shopping List Application

Refactor Code to Not Use Global Variables (Shopping List App)

Installing MongoDB

Create a MongoDB Configuration FIle

Install mongoDB as a Windows Service

Installing Express generator

Installing ExpressJS Application Server

Creating The SPA Project Folder Structure

Setup Express To Serve Static Files

Setup The Shopping Application For Heroku And Testing It Locally

Deploy Shopping List Application To Heroku

Install RoboMongo GUI for MongoDB

Jason Huynh at 10:30 AM

No comments:

Post a Comment

Home

View web version

Tech Junkie Blog: AngularJS SPA Part 5: Create a MongoDB Configuration File

Comments are closed, but trackbacks and pingbacks are open.