mean.js

install mean.js on ubuntu

MEAN.JS is a full-stack JavaScript solution that helps you build fast, robust and maintainable production web applications using MongoDB, Express, AngularJS, and Node.js.  It is a great tool for framework for really accelerating your web development process making use of the MEAN stack.

Judging by the myriad of blog posts out there, it appears most of the developers out there using the MEAN stack are predominantly using MacBooks etc. However, this doesn’t mean you can’t develop using the mean stack on linux. There are just a few tweaks you need to do to get it running.

I have previously written blog posts with instructions for installing MongoDB and Node.js on your ubuntu desktop;

it’s a good idea to install those first, if you haven’t already, before you proceed with the rest of this tutorial.

In order to use the mean.js you will need to install the yeoman generator , which is a scaffolding tool for web applications. Yeoman helps you kickstart new projects, prescribing best practices and tools to help you stay productive.

This is will install the generator and you’re almost ready to install mean.js, however in order to get yeoman to work on your ubuntu machine there is one little hack you need to do.  Yeo man needs to run using your superuser permissions, so you need to create a bash script for it to do so.

Once you’ve done that you can run simply run the yeoman generator,

Get a project up and running with mean.js

Although we have completed a few basics on how to generate a project with mean.js, there as still a few little quirks to remove friction points on your ubuntu desktop. I’ll guide you through a process of how I successfully got this to work.

I’ll create a little demo project and use my favourite IDE WebStorm by jetbrains

First step is step is to create a directory for your project and then change directory

Secondly generate your meanjs project

The generator will now start and you will need to answer some basic questions about your application.

yeoman generator

Complete your basic questions with relevant details

meanjs2

The generation should now complete

meanjs3

You can now open you project in WebStorm

meanjs4You now need to open your terminal window in WebStorm ( alt + f12)

Just check your npm version to ensure you have he latest version , at the time this was 1.4.28

meanjs5

Now install the bower based dependencies into your project, you may need to install bower globally first.

now you should be able to run grunt and start the website

Open your browser and navigate to http://localhost:3000 , you should see the default generated for you.

meanjs6

The guys over at meanjs.org have put together a great video tutorial explaining how to use mean.js. I recommend watching this, not only is it entertaining in a geek way, but it is also has some very useful tips!

Mean.js also has some really good documentation to read to get you up to speed. Check it out on http://meanjs.org/docs.html#overview

Have fun playing around with mean.js and please do let me know if you have any more questions or even if you have some additional tips, in the comment section below.

install magento on ubuntu

How to install magento on ubuntu

There are a number of blog posts available online which attempt to explain how to install magento on ubuntu for  development. However, having spent the best part of an evening following a vast majority of the sites going through this exercise, I found they were all either incomplete, out of date or just completely inaccurate.

This article will attempt to fill the void and aim to provide a complete guide on how to successfully and completely install magento on a ubuntu desktop in order to carry out some magento development. Continue reading

LED energy saving bulbs

What are the advantages of LED energy saving light bulbs

You may not have heard of led energy saving light bulbs but you well in no doubt aware that over the past few years the Department of Energy &  Climate change  and the energy savings trust have been urging households to start making use of energy saving light bulbs due to the fact they are good for the environment, cheaper to run and last longer too. LED energy saving light bulbs are a relatively new comer on the energy saving light bulb market and as of yet have generally been overlooked by the government. In this post we’ll provide you with the vital facts as to why LED bulbs  are an optimal solution to improving your home and office lighting energy efficiency

Continue reading

RPi-banner-960-250

What is a Raspberry Pi?

Over the past 3 years there has been a lot of buzz and chatter on the internet about the Raspberry Pi. However, for the uninitiated the Raspberry Pi, may still mean something that your mother knocks up in the kitchen to eat after your Sunday roast. In this post we’ll provide a brief overview of that the Raspberry Pi is and why all the cool kids are talking about it.

Continue reading

SD, SDHC, SDXC, microSDHC memory cards explained

Over the past decade or so portable data storage technology has dramatically improved. The are a myriad options available, many suited to specific needs or niche requirements.   Making a purchasing decision on for your data storage needs, may at first hand seem a complicated, especially if you are in the market for memory cards.
Continue reading

Which type of SD card should I buy?

Using an SD card (Secure Digital)  is a great way to store data and move data between a myriad of different devices.  For Instance, taken photographs on your digital camera, and then inserting the disc into your laptop to edit the files, then taken the disc directly to your specialised printer to be printed. SD cards are also a great way to increase the amount of storage on your mobile phone.

Continue reading

What is LED Lighting

What is LED Lighting?

Light Emitting Diode (LED) is the latest technology in energy efficient lighting.  A “Light Emitting Diode” are diodes (electronic components that let electricity pass in only one direction) that emit visible light when electricity is applied.  A simpler way of looking at it is LED’s are essentially semiconductors that convert electricity into light.

Continue reading

Energy conservation Ideas

Top 10 energy saving tips for the home

Follow these Top 10 energy saving tips for the home to help save on spiralling energy costs in your home.

  1. Instead of making use of the standby function most devices are shipped with these days, switch off all your appliances at the plug. This can account for 6% of all energy usage in the home, nearly all electrical and electronic appliances can safely be turned off at the plug without upsetting their systems.
  2. Switch your microwave off. The clock may be using more energy over time than is used for cooking.  It will cost far less buying a cheap battery powered wall clock, if you really need to know the time.
  3. If you prefer to leave your desktop or laptop computers on ready for use, ensure that you make use of the Hibernate or standby feature.  Ensuring that you also switch off your peripherals i.e. Printers, Scanners & monitors at the mains.
  4. Make use of your Sleep Timer or Count down timer on your TV sets, to ensure that they switch off when not in use.
  5. Switch off your Electirc blankets at the mains before falling asleep, not only is this for your own personal safety but it ensures
  6. Replace your existing appliances for more energy efficient ones. Most new appliances will have a sticker indicating how they are rated.
  7. Try and ensure that you make use of your Dishwasher and washing machines during low tarrif times, say after midnight.
  8. Always use your washing machine with a full load or follow the manufacturer’s instructions for most economical usage such as the economy program. Modern washing machines and washing powders and liquids are designed to work at lower temperatures.
  9. Only boil half a kettle of water and use an energy saving kettle
  10. Timed heating – don’t leave the heating on unnecessarily at night or when you are out of the house. Set the timing for the heating and water to turn on an hour before you wake or return home and to switch off an hour before you leave the house.