Coder Social home page Coder Social logo

context-1's Introduction

conTEXT

Based on Powder.js

Requirements

Latest Node.js + NPM
Latest MongoDB
Bower (get by running "npm install -g bower")
Gulp (get by running "npm install -g gulp")

Installing

Clone & do "npm install"
Change config.js to your needs

Running

For debugging just run "gulp"
For release run "gulp build" to compile js and css and then run "npm start" (or "./bin/context")

Running via Vagrant

Assuming you have vagrant installed, you can run conTEXT with few simple commands:

  1. Execute vagrant up to init & start vagrant environment
  2. Once ready, connect to vagrant box using vagrant ssh
  3. Change to workdir with cd /vagrant
  4. (optional) Install conTEXT with npm install
  5. Run the app with gulp
  6. Open vagrant host on port 8080 in browser and see conTEXT running

Runnin via Docker

Assuming you have docker installed, you can run conTEXT with few simple commands:

  1. (Optional) If you just checked out the repository and have not run npm install be sure to copy config.example.js to config.js manually.
  2. Get MongoDB running either on docker host machine or in separate docker container.
  3. (Optional) If you wish to run MongoDB in a separate docker container first pull it using docker pull dockerfile/mongodb.
    Then run it as a daemon with persistent local folder using:
    docker run -d --name mongodb -v /data/db:/data/db dockerfile/mongodb.
    You will as well need to replace the database connection line in config.js with following:
    exports.db = 'mongodb://' + process.env.MONGODB_PORT_28017_TCP_ADDR + '/context';
  4. Execute docker build -t context . to build new docker image
  5. Once ready, start up the docker container using docker run -d -p 8080:8080 context (you will need to add --link mongodb:mongodb if you want to link it with your MongoDB container)
  6. Open docker host on port 8080 in browser and see conTEXT running

Testing

Run "npm test"

License

MIT

context-1's People

Contributors

yamalight avatar

Watchers

 avatar  avatar

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.