Coder Social home page Coder Social logo

wolfram's Introduction

wolfram

IRC bot

Installation

Development

$git clone .....wolfram.git
$npm install

Now you can play around with the code and test it via unit tests described in the Test section.

Production

Wolfram uses couchdb for the backend. Install couchdb "runtime" for whatever environment you are using. After installation you can manage your couchdb at the http://localhost:5984 address in your browser aka Futon.

NOTE: CouchDB, by default, is completely open, giving every user admin rights to the instance and all its databases. This is great for development but obviously bad for production. Let’s go ahead and setup an admin. In the bottom right, you will see “Welcome to Admin Party! Everyone is admin! Fix this”.

Now make a copy of the wolfram.config.default file and call it wolfram.config, edit the configuration file to fit your needs.

Open Futon and create a new database. Give it the name you put in the configuration file. Second add a new user also matching your configurations, username and password.

If you skiped the development section, here is a recap

$git clone .....wolfram.git
$npm install
$node_modules\.bin\couchapp push setup-couchdb.js http://username:password@localhost:5984/dbname

Now the database should be up an running! Now you can start the backend.js and client.js

$node backend.js
$node client.js

Wolfram should connect to irc and join the channels specified in the configuration file.

Tests

To run tests type npm test in the node console at the root of the project. In case your environment has make installed you can also type make test. The npm test command is in fact only invoking a command (mocha -R list) defined under the script attribute in the package.json file.

Mocha is used as test framework, and should is used for assertions.

wolfram's People

Contributors

prasmussen avatar ohaal avatar furier avatar mortonfox avatar

Stargazers

 avatar

Watchers

 avatar  avatar James Cloos avatar  avatar

Forkers

ohaal

wolfram's Issues

Timer by DateTime Bug

If the current time is 13:50 and the timer is set to start at 13:40, the timer should be set to 13:40 the next day. But instead the timer just finishes at once.

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.