<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>schizoid manUncategorized</title>
	<atom:link href="https://schizoidman.motd.org/?cat=1&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://schizoidman.motd.org</link>
	<description></description>
	<lastBuildDate>Mon, 20 Oct 2014 20:36:25 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Building a MEEN Blog: MongoDB + Express + Ember.js + Node</title>
		<link>https://schizoidman.motd.org/?p=207</link>
		<comments>https://schizoidman.motd.org/?p=207#comments</comments>
		<pubDate>Mon, 20 Oct 2014 20:36:25 +0000</pubDate>
		<dc:creator><![CDATA[schizoid]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://schizoidman.motd.org/?p=207</guid>
		<description><![CDATA[Today we are going to build a blog. Not just any blog, but a MEEN blog. What is a MEEN blog you ask? Well why don&#8217;t you just keep on reading, instead of asking questions to no one in particular. MongoDB The MongoDB downloads page does not provide any command-line friendly links or instructions to ... <a class="more-link" href="https://schizoidman.motd.org/?p=207">[Read more...]</a>]]></description>
				<content:encoded><![CDATA[<p>Today we are going to build a blog. Not just any blog, but a MEEN blog. What is a MEEN blog you ask? Well why don&#8217;t you just keep on reading, instead of asking questions to no one in particular.</p>
<p><strong>MongoDB</strong><br />
The <a href="https://www.mongodb.org/downloads">MongoDB downloads</a> page does not provide any command-line friendly links or instructions to download their product. Luckily there was this: <a href="http://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/#download-the-binary-files-for-the-desired-release-of-mongodb">Install MongoDB on Linux</a> which has a command-line friendly approach to download the latest version of MongoDB. Perfect.</p>
<pre style="overflow:hidden;font-size:0.75em;">
$ curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz
$ tar zxvf mongodb-linux-x86_64-2.6.4.tgz
$ cp -R mongodb-linux-x86_64-2.6.4/ ~/mongodb
$ echo 'export PATH=$HOME/mongodb/bin:$PATH' >> ~/.bashrc
$ . ~/.bashrc
$ sudo mkdir -p /data/db
$ sudo chown -R bttf:bttf /data  #we will be running mongod under 'bttf' user
</pre>
<p>The instructions are pretty straightforward. I created a &#8216;mongodb&#8217; directory in my home folder, and created &#8216;/data/db&#8217; that mongod will be using to store its data, with the correct file permissions.</p>
<p><strong>Node</strong><br />
Before we get started with building our API with Express, we are going to need to install node.</p>
<p>I prefer installing node locally via <a href="https://gist.github.com/isaacs/579814">one of these methods</a>. Doing this will avoid a mess of permission problems you may encounter when using globally installed node modules, especially when modules require global installation. Global installs go into a directory in your home folder (which should be included in your path) and you will not have to use sudo &#8211;ever&#8211;. This saves keystrokes and is also a safer way to operate in Linux.</p>
<p>(You can ignore the curl request to npmjs.org; npm is now included with node.)</p>
<p><strong>Express</strong><br />
I am going to use the <a href="https://github.com/expressjs/generator">Express Application Generator</a>. With it you can run &#8216;express [dir name]&#8216; and it will scaffold out an express app. You will need to navigate into the directory and run &#8216;npm install&#8217;.</p>
<p>The first thing we want to do is install <a href="#">mongoose</a>, which basically acts as our ORM for accessing our mongo database from our Express app.</p>
<pre style="overflow:hidden;font-size:0.75em;">
npm install -S mongoose
</pre>
<p>http://emberjs.com/api/data/classes/DS.RESTSerializer.html#property_primaryKey</p>
<p>Ember &#8211; Creating new records and storing them, etc &#8230;</p>
<p>http://discuss.emberjs.com/t/why-does-store-createrecord-create-a-record-immediately/3161/5</p>
<p>Ember &#8211; Attaching multiple routes to a single controller</p>
<p>http://discuss.emberjs.com/t/is-it-possible-for-many-routes-to-share-the-same-controller/2160</p>
<p>Ember &#8211; Make sure API returns JSON for POST requests as well&#8230;</p>
<p>http://discuss.emberjs.com/t/what-should-an-api-compatible-rest-server-return/779</p>
<p>http://stackoverflow.com/questions/18671265/duplicate-null-id-records-in-ember-data</p>
]]></content:encoded>
			<wfw:commentRss>https://schizoidman.motd.org/?feed=rss2&#038;p=207</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MOTD</title>
		<link>https://schizoidman.motd.org/?p=1</link>
		<comments>https://schizoidman.motd.org/?p=1#comments</comments>
		<pubDate>Mon, 08 Jul 2013 12:13:14 +0000</pubDate>
		<dc:creator><![CDATA[schizoid]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[free blog]]></category>
		<category><![CDATA[free unix]]></category>
		<category><![CDATA[free wordpress]]></category>

		<guid isPermaLink="false">http://smj.sdf.org/generic_motd/?p=1</guid>
		<description><![CDATA[Welcome to the MOTD Project sponsored by the SDF Public Access UNIX System.]]></description>
				<content:encoded><![CDATA[<p>Welcome to the <a href="http://motd.org">MOTD Project</a> sponsored by the <a href="http://sdf.org">SDF Public Access UNIX System</a>.<br />
<html><head><meta name=keywords content="bbs, unix, free shell, shell account, free shell account, shell access, free account, netbsd, public access, unix system, dec alpha, arpa, vhost, free webhosting, free webhost, free irc sundays, SDF, Super Dimension Fortress, lisp, genera, eggdrop, bouncer, learn unix, unix training"></head><br />
</html></p>
]]></content:encoded>
			<wfw:commentRss>https://schizoidman.motd.org/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
