Extern classes for Mongoose and MongoDB nodejs driver.
- Install and make available in the command line NodeJS
- Create a Javascript project.
- Run
haxelib install HxMongo(once this lib has been added to haxelib)
- See the quickstart guide below.
- The installations should make all necessary tools available.
- Develop your application and compile it in a
.js - Run
nodejs your_app.jsand you are done!
- This package needs
NPMmanager: (remember to install)mongodbmongoose(optional)
MongoDB driver quickstart guide Mongoose quickstart guide
- Install MongoDB.
- Edit
src/com/dal/mongotest/MongoTest.hxwith your server domain and user credentials. - Run
haxelib git hxnodejs https://github.com/HaxeFoundation/hxnodejs.git master - Run
haxelib install promhx - Make sure you have the necessary compilers. e.g. For Ubuntu:
sudo apt-get install build-essential - Within "test/build" directory run
npm installto fetch and build native MongoDB driver for node.js - Run
haxe build.hxml - From the "test/build" directory run
node main.js

