-
xHabbo V
Brief Introduction
xHabbo is an administration panel that is ideally going to cover everything one could ever possibly imagine within the retro business. The system is coded with Javascript built on Google's V8 Engine, (Node).
Some Code Snippets
Dynamic Class Loading
Code:
import File from 'glob'
import Async from 'async'
import Express from 'express'
import Messages from '../messages'
export default class System
{
static launch (cb)
{
const http = Express()
http.use(Express.static(`${homeDirectory}/public/assets`))
Async.series([
// Configure It
function (cb)
{
http.set('views', `${homeDirectory}/public/views`)
http.set('view engine', 'ejs')
cb()
},
// Load Middleware
function (cb)
{
File(`${__dirname}/middleware/**/*.js`, ((e, f) => {
if (!e)
{
f.forEach((fi) => {
const c = require(fi).default
new c (http)
})
cb()
}
else
{
cb(e)
}
}))
},
// Load Controllers
function (cb)
{
File(`${__dirname}/controllers/**/*.js`, ((e, f) => {
if (!e)
{
f.forEach(fi => {
const c = require(fi).default
new c (http)
})
cb()
}
else
{
cb(e)
}
}))
}
], ((e, r) => {
if (e) errorMode = true
http.listen(80, (() => {
cb(null, `HTTP server started in ${Date.now()-timeLaunched}ms`)
}))
}))
}
}
Dynamic Background Task Manager
Code:
import File from 'glob'
import Async from 'async'
import Express from 'express'
import Messages from '../messages'
export default class System
{
static launch (cb)
{
const http = Express()
http.use(Express.static(`${homeDirectory}/public/assets`))
Async.series([
// Configure It
function (cb)
{
http.set('views', `${homeDirectory}/public/views`)
http.set('view engine', 'ejs')
cb()
},
// Load Middleware
function (cb)
{
File(`${__dirname}/middleware/**/*.js`, ((e, f) => {
if (!e)
{
f.forEach((fi) => {
const c = require(fi).default
new c (http)
})
cb()
}
else
{
cb(e)
}
}))
},
// Load Controllers
function (cb)
{
File(`${__dirname}/controllers/**/*.js`, ((e, f) => {
if (!e)
{
f.forEach(fi => {
const c = require(fi).default
new c (http)
})
cb()
}
else
{
cb(e)
}
}))
}
], ((e, r) => {
if (e) errorMode = true
http.listen(80, (() => {
cb(null, `HTTP server started in ${Date.now()-timeLaunched}ms`)
}))
}))
}
}
The core is being developed initially to cover anything that could possibly be needed for feature development. This project is going to be built within my free time, which isn't very much due to numerous jobs, school and the military - however I will try my hardest to release a base build for this sometime within the next month.
Installation System
https://www.youtube.com/watch?v=38K56Vfxxdw
-
Re: xHabbo V
Sigh, another dead development.
Thread closed, contact me if you want it reopened again.
UPDATE:
Thread reopened.
UPDATE #2:
Thread closed again by Future
-
Re: xHabbo V
Updates
-Email system has been put in place to automatically send system emails for triggering actions, ie: creating a new staff account
-Features are being built based around the Plus Emulator database
-Most of the core functionality is present with a base build set for November 10, with additional support builds persisting.
-Due to nature of constant updates, an update page that checks for updates has also been developed, may add a background process to check as well.
xHabbo V - Download