Skip to content

Haxe externs for Mongoose and MongoDB's node.js driver 2.0.

License

Notifications You must be signed in to change notification settings

wiggin77/HxMongoNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB logo

Mongoose

Haxe logo

nodejs logo

HxMongo

Overview

Extern classes for Mongoose and MongoDB nodejs driver.

Installation

  • 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)

Build and Run

  • 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.js and you are done!

Dependencies

  • This package needs NPM manager: (remember to install)
    • mongodb
    • mongoose (optional)

QuickStart

MongoDB driver quickstart guide Mongoose quickstart guide

Test app

  • Install MongoDB.
  • Edit src/com/dal/mongotest/MongoTest.hx with 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 install to fetch and build native MongoDB driver for node.js
  • Run haxe build.hxml
  • From the "test/build" directory run node main.js

About

Haxe externs for Mongoose and MongoDB's node.js driver 2.0.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages