| 
									
										
										
										
											2013-04-22 16:51:32 +00:00
										 |  |  | var modules = { | 
					
						
							|  |  |  |     	user: require('./src/user.js'), | 
					
						
							| 
									
										
										
										
											2013-04-24 20:40:34 +00:00
										 |  |  |         topics: require('./src/topics.js'), | 
					
						
							|  |  |  |         posts: require('./src/posts.js'), | 
					
						
							| 
									
										
										
										
											2013-04-22 16:51:32 +00:00
										 |  |  |     	templates: require('./src/templates.js'), | 
					
						
							|  |  |  |     	webserver: require('./src/webserver.js'), | 
					
						
							|  |  |  |     	websockets: require('./src/websockets.js') | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     DEVELOPMENT = true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | global.configuration = {}; | 
					
						
							|  |  |  | global.modules = modules; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-04-24 20:40:34 +00:00
										 |  |  | // change this to = null when auth module is complete
 | 
					
						
							|  |  |  | global.uid = 1; | 
					
						
							| 
									
										
										
										
											2013-04-22 16:51:32 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | (function(config) { | 
					
						
							|  |  |  |     config['ROOT_DIRECTORY'] = __dirname; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	modules.templates.init(); | 
					
						
							|  |  |  | 	modules.webserver.init(); | 
					
						
							|  |  |  | 	modules.websockets.init(); | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }(global.configuration)); |