Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (15 sloc) 0.875 kB
930bada @thecolorblue added Getting Started
thecolorblue authored
1 # Murray CMS
2
ff189c3 @thecolorblue added readme
thecolorblue authored
3 Very early version of a blog using nodejs and mongodb. It is designed to be simple, flexible, and take advantage of some of the features of mongodb, like the ability to save data to the db without an structure.
930bada @thecolorblue added Getting Started
thecolorblue authored
4
5 ## Getting Started
6
7 You need to setup your mongodb by hand. This isn't as tricky as it sounds since there is not much going on right now.
8 after you enter mongo:
9
10 use murray // opens murry db
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
11
930bada @thecolorblue added Getting Started
thecolorblue authored
12 // create settings
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
13
930bada @thecolorblue added Getting Started
thecolorblue authored
14 settings = {postcount:'num',actual:0}
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
15
930bada @thecolorblue added Getting Started
thecolorblue authored
16 db.settings.save(settings)
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
17
930bada @thecolorblue added Getting Started
thecolorblue authored
18 // create first user
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
19
930bada @thecolorblue added Getting Started
thecolorblue authored
20 // the only thing that is really required is name and pass
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
21
930bada @thecolorblue added Getting Started
thecolorblue authored
22 admin = {id:1,name:'admin',pass:'secretpassword','email':'you@yourdomain.com'}
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
23
930bada @thecolorblue added Getting Started
thecolorblue authored
24 db.users.save(admin)
25
e815fbb @thecolorblue fixed some style issues
thecolorblue authored
26
930bada @thecolorblue added Getting Started
thecolorblue authored
27 And you should be all set! Mongo should create everything else you need as you go along.
28
29 If you run into any problems create an issue at https://github.com/thecolorblue/Murray-CMS.
Something went wrong with that request. Please try again.