Code Monkey home page Code Monkey logo

comply-nodejs's Introduction

CEAN Stack Project Tracking Application

This project is meant to demonstrate a full stack application using Couchbase, Express Framework, Angular 2, and Node.js. This particular stack is called the CEAN stack or CANE stack. With the Object Document Modeling (ODM) tool Ottoman, we can easily create relationships between documents within the application.

Installation

Download or clone the project from GitHub and run the following via the Command Prompt (Windows) or Terminal (Mac and Linux):

npm install
cd angular
npm install

This will install all Node.js and Angular 2 dependencies into the project. With the dependencies available, the TypeScript files need to be compiled into their JavaScript version. This can be done by executing the following from the Terminal or Command Prompt:

cd angular
ng build --output-path=../public

If there were no compile time errors, you should be left with a public directory that will be picked up by Node.js when the project is run.

Configuration

This project expects a Couchbase Server bucket to exist named comply. This bucket name can be changed in the project's config.json file.

Running the Project

From the root of the project, in your Command Prompt or Terminal execute the following to run the Node.js backend:

node app.js

Because the Angular 2 TypeScript files were compiled in the installation step, and because they are bundled with the Node.js code, the application can be accessed via http://localhost:3000

Resources

Couchbase Server - http://www.couchbase.com

Ottoman - http://ottomanjs.com

Couchbase Compliance Demo with Java - https://github.com/couchbaselabs/comply-java

Couchbase Compliance Demo with GoLang - https://github.com/couchbaselabs/comply-golang

comply-nodejs's People

Contributors

nraboy avatar brett19 avatar

Stargazers

hirosaki.tokyo avatar Darrel avatar Imran Khan avatar Tib avatar  avatar Brett Larson avatar Paul Capestany avatar  avatar  avatar  avatar Traun Leyden avatar

Watchers

Sergey Avseyev avatar Steve Yen avatar Thuan Nguyen avatar Sarath Lakshman avatar  avatar  avatar  avatar Jeffry Morris avatar Laurent Doguin avatar Abhishek Singh avatar James Cloos avatar Dean Proctor avatar  avatar Dipti Borkar avatar Alex Ma avatar  avatar Wayne Siu avatar Sundar Sridharan avatar  avatar  avatar  avatar Sriram Ganesan avatar Venu Uppalapati avatar Ahmed Elgendy avatar  avatar hirosaki.tokyo avatar Jeff Dillon avatar  avatar  avatar Cihan B. avatar Jim Walker avatar  avatar Dan Owen avatar Manu Dhundi avatar  avatar Andrew Reslan avatar  avatar vickiezeng avatar Couchbase Robot avatar  avatar  avatar Brian Williams avatar  avatar Michael Kwok avatar Keshav Murthy avatar Adam In Tae Gerard avatar Laura Czajkowski avatar mmaedel avatar  avatar

comply-nodejs's Issues

Hello Todd and Nic. Can you please sort this out? I have the bucket in place and dont get a container connect?

$ npm install couchbase
npm WARN prefer global [email protected] should be installed with -g

[email protected] install C:\Users\mädel\home\comply\node_modules\couchbase
prebuild --install

prebuild WARN install Prebuilt binaries for node version v5.7.1 are not available
prebuild ERR! configure error
prebuild ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
prebuild ERR! stack at failNoPython (C:\Users\mädel\home\comply\node_modules\node-gyp\lib\configure.js:401:14)
prebuild ERR! stack at C:\Users\mädel\home\comply\node_modules\node-gyp\lib\configure.js:356:11
prebuild ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
prebuild ERR! not ok
prebuild ERR! build Error: Can't find Python executable "python", you can set the PYTHON env variable.
prebuild ERR! build at failNoPython (C:\Users\mädel\home\comply\node_modules\node-gyp\lib\configure.js:401:14)
prebuild ERR! build at C:\Users\mädel\home\comply\node_modules\node-gyp\lib\configure.js:356:11
prebuild ERR! build at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN [email protected] No repository field.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mädel\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "couchbase"
npm ERR! node v5.7.1
npm ERR! npm v3.8.0
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: prebuild --install
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] install script 'prebuild --install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the couchbase package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! prebuild --install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs couchbase
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls couchbase
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\mädel\home\comply\npm-debug.log

npm-debug.txt

WHAT DO NEXT? Thank you

Matthias

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.