background preloader

NodeCellar: Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB

NodeCellar: Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
In my previous post, I shared my recent experience building a RESTful API with Node.js, MongoDB, and Express. In this post, I’m sharing the client application that uses that RESTful API. The Node Cellar application allows you to manage (retrieve, create, update, delete) the wines in a wine cellar database. Run the Application You can run the application here. NOTE: Node.js is running on port 3000 on my EC2 Instance. Server-Side The details of the Node.js, MongoDB, and Express implementation are documented in my previous post. Client-Side In this application, Node.js is used to provide the RESTful services that the client application needs to manipulate the data. This is a Node.js and MongoDB powered version of an application I initially posted here with PHP and Java backends. Source Code The source code is available in this repository on GitHub.

Node.js web site with MongoDB on MongoLab - Windows Azure By Eric Sedor, MongoLab Greetings, adventurers! Welcome to MongoDB-as-a-Service. In this tutorial you will: Provision the database - The Azure Store MongoLab add-on will provide you with a MongoDB database hosted in the Azure cloud and managed by MongoLab's cloud database platform. Create the app - It'll be a simple Node.js app for maintaining a list of tasks. At any time throughout this tutorial, feel free to kick off an email to support@mongolab.com if you have any questions. Before continuing, ensure that you have the following installed: Quick start If you have some familiarity with the Azure Store, use this section to get a quick start. Open the Azure Store. For Name, enter MONGOLAB_URI. Note: Azure adds the CUSTOMCONNSTR_ prefix to the originally-declared connection string, which is why the code references CUSTOMCONNSTR_MONGOLAB_URI. instead of MONGOLAB_URI. Now, on to the full tutorial... Provision the database Log into the Azure Management Portal. Congratulations! Create the app Setup

IT4Life - Web and Database Design. West Wales madhums/node-express-mongoose-demo Kevin Schaul A simple Node.js web application that uses Mongoose, Express and MongoDB that returns JSON Today I’m going to show you how to build a simple application that uses Nodejs, Mongoose, Express and MongoDB that will persist some data and get it back. It will also have a simple configuration file so I can configure my routes in Express. For those that don’t know, Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment and Express is a Sinatra inspired web development framework for node.js. I’m installing and running this on Ubuntu 11.x. Installing Node (the current version as of the date of this article is v.0.6.6, use an apt package if you prefer or download it from the Nodejs website). Update: Dec. 22, 2011 – It looks like NPM is now installed in newer builds of Node, if you have an older version that doesn’t include NPM you can install it like this: Now, install the packages we will need: Note: Please note that there is an express-mongoose plugin but I won’t be using it for this project. Install MongoDB with the instructions found on their site.

python recipe: grab page, scrape table, download file . palewire Here's a change of pace. Our first few lessons focused on how you can use Python to goof with a bunch of local files. This time we're going to try something different: using Python to go online and screw around with the Web. Whenever I caucus with aspiring NICARians and other data hungry reporters, it's not long before the topic of web scraping comes up. A number of fellow travelers do a noble job instructing people on the basics during NICAR's annual seminars. But before we get going, let me just say that I'm going to assume you read the first couple recipes and won't be working too hard to explain the stuff covered there. Formalities aside, here's the example task I've selected to achieve our mission. 1. There are a dozen different methods for going about our task, so you shouldn't assume the one I'm about to show you is the only or the best. A module is a collection of functions, defintions and statements contained in a separate file that you can import into your script. 2. 3. 4. #! #!

Let’s Make a Drawing Game with Node.js Martin Angelov By now you have probably heard of node.js. It is an asynchronous web server built ontop of Google’s V8 JavaScript engine (the same one that makes Chrome lighning fast). Using node, you can write scalable web services in JavaScript, that can handle a huge number of simultaneous connections, which makes it perfect as the backend of games, web chats and other real time tasks. The Idea Today we will be making a simple online drawing game. Installing node.js To run the game you will need to install node.js. After you finish installing, you will also get access to npm, the node package manager. npm install socket.io@0.9.10 node-static This shouldn’t take more than a few minutes to complete. Running the Application If you want to just grab the files and test the app on your computer, you will need to download the archive from the button above, and extract it somewhere on your hard drive. node app.js The HTML The first step is to create a new HTML document. index.html <! Draw Anywhere!

Who Do You Think You Art? | Llanelly House Chocolate Fusion | Finest Artisan Chocolate | Handmade Chocolates | Handmade in Wales | Chocolate gifts | Chocolate Truffles and Pralines | Chocolate Bars | Chocolate Slabs | Drinking Chocolate WMS • Dreifa Mills, Cwm Morgan Welsh Mills Society • Cymdeithas Melinau Cymru Introduction News Mills About Mills About us Cymraeg History Dreifa Mills was built in 1880 as a woollen mill. It has two 20 ft overshot wheels which drove the mill machinery and a DC dynamo for lighting, the dynamo being under the control of the miller’s wife via a lever in the parlour. At present the restored wheel drives a wood saw and the dynamo. Top Visiting The Mill may be visited by prior arrangement; contact Mike Godsell on 01239 698 314 Access: The mill is 300m up a rough rutted track unsuitable for cars with low suspension, and which may be quite muddy. Location: The Mill is in the upper reaches of the legendary steep sided valley of the Cych (*), adjoining Cwm Morgan village [SN 348 295], in Carmarthenshire. Around the Cych and its tributaries a large number of historic mills are recorded in the Coflein database. Mills of interest locally: The turbine on the Clynfyw estate is being renovated. Link

WMS ~ Mills Open to the Public All are water mills unless noted. For each mill, follow the link for more information. Additional mills are in course of preparation. Ceredigion Rock Mill | Melin Wlân, Capel Dewi Rock Mill is the only working, waterwheel powered, commercial Woollen Mill remaining in Wales, and in production spinning and weaving since it was built in the 1890s. Sir Benfro • Pembrokeshire Carew Tidal Mill, Carew | Melin Caeriw, Caeriw Carew Mill is an early C19 Tidal Corn Mill with two wheels and a vast 23 acre millpond, part of Carew Castle site on the A4075. Melin Tregwynt, Casmorys | Tregwynt Mill, Castle Morris Tregwynt is a working Woollen Mill employing 20+, one mile from Pembrokeshire Coastal Path and beaches at Abermawr and Aberbach. Solva Woollen Mill | Ffatri Wlan Felin Ganol Solva Mill is a C20 working Woollen Mill producing flat weave carpets and rugs using traditional skills; with shop, textile sales, and tea Room. Y Felin, St Dogmaels | Llandudoch Sir Gaerfyrddin • Carmarthenshire Torfaen Powys

greenhaffs coal merchants Greenhaffs coal a family run solid fuel distribution business supplying quality house coals and anthracites to homes throughout the South Wales area. All types of smokeless and non smokeless solid fuels supplied. Including welsh anthracite welsh dry steam & house coal. We are proud of the professional efficient and competitive service we are able to offer we like to feel that each customer has their individual needs catered for. Email greenhaffscoal@gmail.com

Related: