-
Notifications
You must be signed in to change notification settings - Fork 1
Programming Phase VI
I am really excited and happy to see the dashboard becoming a reality. This week, we have focussed on 3 majors tasks namely, implementation of journal module, l10n.js locale implementation and converting the API and dashboard as a single node process so that it becomes easy to deploy.
Localization(l10n) refers to the adaptation of a product, application or document content to meet the language, cultural and other requirements of a specific target market (a locale). For l10n implementation, we are using webL10n library as it provides an easy way to change language settings without refreshing the dashboard and thus creating a smooth experience for the user.
To merge the node process for API and Dashboard, heavy restructuring of code was done. Here is the code for the main file.
// require files
var express = require('express'),
settings = require('./config/settings'),
app = express(),
ini = settings.load();
//configure app setting
require('./config/main')(app, ini);
// include api routes
require('./api/route')(app, ini);
// include dashboard routes
require('./dashboard/route')(app, ini);
// Start listening
app.listen(ini.web.port);
console.log("Sugarizer Server is listening on port " + ini.web.port + "...");
//export app for testing
module.exports = app;The last thing we would like to talk about is journal module. Though I haven't completed it fully as I was facing some issues while launching a journal entry. The issue should be related to localstorage and its data structure but we still have to figure out the actual reason. Here is a snapshot for journal module in Spanish locale.
Stay tuned for more updates!
