Skip to content

This is the skeleton of a MEAN stack application. It separates the client and server.

Notifications You must be signed in to change notification settings

amnotafraid/MeanSeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MeanSeed

Introduction top

While I was learning the MEAN stack, I worked through several tutorials. One tutorial that formed the basis for my development was this one by J. Cole Morrison. He separated the client part, or the Angular part, from the server part, or the Node and Express part.

The master branch of MeanSeed is like a foundation on which I can build other applications.

What does this branch do? Not much. If you were to get it out, build it, and execute it, you could find a registrations form to fill out. Clicking submit on the form will save the user information in a database and encrypt the password.

I am writing a book about adventures in developing on this foundation. Other branches of this repository are development steps that I mention in the book.

Build the Code top

Some version info:

node -v
v6.0.0
mongo --version
MongoDB shell version: 3.2.0
/**
 * @license AngularJS v1.5.8
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
 npm -v express
3.8.6

If you have Node, Mongo, Bower, Compass, and Git installed on a Mac OSX computer, you can deploy the MeanSeed application as follows. These directions should work for a Windows environment with some modifications.

First, clone the MeanSeed code. In the directory where you want the root, do a git clone. It will create a MeanSeed directory and get all the code inside that directory:

git clone https://github.com/amnotafraid/MeanSeed.git

In the MeanSeed directory, you want a directory structure for your data that looks like this:

└─data
     ├── db
     └── logs

You can get that by going inside the MeanSeed directory and typing:

mkdir -p data/db && mkdir data/logs

In the MeanSeed/client directory, install the software needed like this:

npm install
bower install jquery

In the MeanSeed/server directory:

npm install

Run the code top

In the MeanSeed directory, start mongo with the following command:

mongod --dbpath data/db/ --logpath data/logs/mongodb.log --logappend

Start the software in the client directory, MeanSeed/client:

grunt serve

This should open a browser at localhost:9000, but you can close it because you don't need it. Start the software in the server directory, MeanSeed/server:

npm test

Open up a browser at http://localhost:3000. You should see your app:

top

meanseed front page ##Host the code top I have instruction on how to host this code here

About

This is the skeleton of a MEAN stack application. It separates the client and server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published