Giter Club home page Giter Club logo

agora's Introduction

Agora

This project comprises a web platform for a Community Server.

There is a companion project where the feature backlog lives. Go to the issues in https://github.com/softwerkskammer/Agora-Backlog/issues


Video hangout

Co-ordination via the mailinglist at http://www.softwerkskammer.org/groups/agora

What this is about

This is the project to build the new groupware platform for the German Software Craftsmanship Communities. It can be seen in action on http://softwerkskammer.org The site is currently German only.


Current Build Status

Build Status

New and easy local installation via vagrant

Vagrant is an easy way to set up virtual machines inside your OS with everything needed to get our server up and running.

Just follow these steps:

  1. Download and install Oracle VirtualBox from here: https://www.virtualbox.org
  2. Download and install Vagrant from here: http://www.vagrantup.com
  3. Check your version of Vagrant with vagrant --version. 1.8.1 and above are known to work.
  4. Clone, or if you plan to make contributions, fork and clone the repo (forking is a must if you want to contribute)
  5. Open a shell inside the checkout directory
  6. Perform vagrant up - (this will download and provision the virtual machine)
  7. Start auto-syncing your workspace with vagrant rsync-auto & (so local changes will be available on the vm)
  8. You can then log into the VM via vagrant ssh
  9. You will find the sources inside the VM in a directory /home/vagrant/agora
  10. So cd agora

You are now ready to start the build.

  1. npm install - this will fetch all dependencies needed
  2. node softwerkskammer/initialDBSetup - this will create some sample data to start with
  3. npm test - will create a few necessary files and perform a complete test suite. This must end successfully!

Prepare log file configuration

  1. Open softwerkskammer/config/example-winston-config.json or socrates/config/example-winston-config.json, depending on which app you want to use
  2. Delete the comment in line 1 (// to use these values, strip "example-" from the filename, delete this comment and replace the below values ), you may keep the content of the file as it is
  3. Save this file as winston-config.json

Now you can decide which app you want to start:

  • Start softwerkskammer

    • node start-softwerkskammer - will start the server
    • Now go to your local machine, open a browser and use http://localhost:17124
  • Start socrates

    • ./build-socrates.sh in order to build some css, js etc.
    • node start-socrates- will start the server
    • Now go to your local machine, open a browser and use http://localhost:17224

Classical local installation

System requirements and Installation

Node.js

It is a node.js project. Therefore you need node.js installed. Get it from http://nodejs.org.

You need a current 4.x version to run the software (0.12.x should also be OK).

Your node.js ships a npm in suitable version.

Additional Software

Some modules are compiled during the installation. Therefore some additional software must be installed.

Python

  • Python 2.7 (not Python 3!) in system path
  • For Mac OS: Python 2.7 is already installed.
  • For Windows:
    • Make sure that Python and node.js are both either 32 bit or 64 bit - mixed combinations will not work!
    • Add an environment variable PYTHON that points to the Python executable.

C++

  • Install a C++ compiler with headers and libraries (depending on your OS)
    • For Mac OS X: Install XCode from the App Store. In XCode's preferences (section "Downloads"), install the command line tools. When you have installed the stand alone version of the command line tools, you need to execute sudo xcode-select -switch /usr/bin before you are able to run npm install.
    • For Windows 7 and older: Microsoft Windows SDK for Windows 7 and .NET Framework 4 available here
    • For Windows 8 (may also work for Windows 7):
      • Microsoft Visual Studio C++ 2012 for Windows Desktop (Express version works well)

Git

  • Git must be in the system path.

MongoDB

Grunt-CLI

We propose to install grunt-cli globally via the -g option of npm. To find out more about this option, see https://npmjs.org/doc/global.html.:

  • (Optional) To define the installation location of global npm packages on Unix-like Systems create a file called .npmrc with the following contents in your Home directory:

      prefix=GLOBALPATH
      umask=077
    
  • Anywhere, invoke npm install -g grunt-cli or sudo npm install -g grunt-cli if you don't have sufficient user privileges. You can check the installation with which grunt. If a location is returned everything is fine.

  • (Optional) If the directory GLOBALPATH/bin is not in your path (you can check with echo $PATH), you need to add it to the path: In your Home directory, create or edit the file .profile and add the following line:

      export PATH=GLOBALPATH/bin/:$PATH
    

Shell for npm install

  • You need a shell (a.k.a. command line window) that is able to access the stuff you just installed.

  • For Windows 7 and older:

    • The shell must be set up for running the Microsoft C++ compiler, like so:

         cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /Release /X86
      
  • For Windows 7 or 8:

Preparations for use

  • Check out this project into some folder (let's call it REPO from now on)

  • Open a shell as described above and go to REPO

  • Run npm install

  • If python 3 is the default version, the command line for npm install must be adapted to the right python version (2.7)

          npm install --python=/usr/bin/python2
    
  • Start mongodb. If you only plan to use it for development, the default settings are ok. The app as well as the tests use these defaults if you did not change the configuration.

  • (Optional) Instructions for authenticated use are here

The built-in wiki

To set up the built-in wiki follow these instructions

Configuring the server

Configuration for Softwerkskammer and SoCraTes:

  • Copy config/example-winston-config.json to config/winston-config.json, remove the comment in the first line, and adapt the paths if you like.

Running the server

  • Open a shell in REPO
  • If your installation is fresh, perform the db initialization script:
    • Run node softwerkskammer/initialDBSetup
  • If your installation is fresh or you changed anything:
    • Run npm test (this creates the CSS files and other static contents and performs jshint checking)

Now you can decide which app you want to start:

  • Start softwerkskammer

    • node start-softwerkskammer - will start the server
    • Now go to your local machine, open a browser and use http://localhost:17124
  • Start socrates

    • ./build-socrates.sh in order to build some css, js etc.
    • node start-socrates- will start the server
    • Now go to your local machine, open a browser and use http://localhost:17224
  • The ports 17124 and 17224 are the default and can be changed via the command line option --port or via the environment option 'port' to any desired value

  • If your installation is fresh, you should create an account for yourself by registering.

    • The default setup assumes you are running on localhost for authentication. If you are using a different hostname, you have to edit the configuration file config/example-server-config.json. Follow the instructions in there.

Full Access to the Applications

Not all features can be accessed without login. Some can only be accessed when you are superuser.

Access for Softwerkskammer and SoCraTes:

  • Log in to the application (Softwerkskammer or SoCraTes or both). Be aware that Google and Github cannot be used out of the box. Therefore, you should use an OpenID provider such as Stack Exchange, XLogon (https://my.xlogon.net/) or you can choose one from this list: http://openid.net/get-an-openid/

  • To access certain admin features, you may want to become superuser. This step will make you superuser of both applications at once. In order to do this, open mongo swk, display all member information via db.memberstore.find().pretty() and search for your entry. Select the string after id, create a copy of config/example-authentication-config.json, name it authentication-config.json, and add your id to the superuser array.

Access for SoCraTes:

  • Copy the config/example-socrates-server-config.json and name it config/socrates-server-config.json (don't forget to remove the comment).
  • Create a SoCraTes by invoking /activities/new. Make sure that the date matches the year that is hardcoded in socrates/lib/activities/socratesConstants.js in the variable currentYear.

Running the tests

You can run the tests in REPO with npm test

####Optional For running specific tests only, you can use mocha in a command like mocha -R spec test/announcements/ To install mocha, invoke npm install -g mocha or sudo npm install -g mocha

To run the style check (jshint) and the tests on every file change, use grunt watch

We are using WebStorm as IDE Webstorm

WebStorm Logo

Feel free to ask us for a community licence if you are contributing.

Editing the stylesheets

Only edit the agora.less file inside the "partials" subfolder. Running npm test or grunt default will compile everything to screen.css.

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.