Giter Club home page Giter Club logo

geli's Introduction

Great E-Learning Informatics (geli)

NodeJS Version MongoDB Version

GitHub release Build Status

license Github Releases Gitter chat


This project aims to develop a Open-Source platform for E-Learning in computer science. We want to have an API, so Apps and other "Frontends" can be added easily.

This project is mainly developed by master-students of the University of Applied Science in Darmstadt, Germany. If you want to support this project, just say hello on Gitter.


Usage with Vagrant

To use Vagrant for the development download VirtualBox, install it and then do the same with vagrant. After that open the e.g. git bash AS ADMIN and go to the project root. Now run vagrant up.

After everything is installed and all npm dependencies are downloaded you can connect to the VirtualBox via vagrant ssh. The Ports 4200 and 27017 are forwarded to your host system. Just type localhost:4200 in your browser.

Start services

To start the backend ssh into the VM with vagrant ssh and run the commands seen under Run app.

To start the frontend ssh into VM with a second shell and run the commands seen under Development server.

Usage with Docker

You need docker and docker-compose.

Installing dependencies

You can install dependencies by running the following commands from the project root.

docker-compose run --rm --no-deps api npm install
docker-compose run --rm --no-deps web-frontend npm install

Running the application

After installing the dependencies you can run the application by executing:

docker-compose up

You can access the web frontend on your host machine at http://localhost:4200.

The API will be proxied to http://localhost:4200/api and MongoDB is accessible at localhost:27017.

Backend

- This content may not be up to date... we try to update it asap.

Installation

  1. Open a Terminal and type following:
cd /path/to/project/api
npm install

Run APP

cd /api
npm start-dev

or nodemon -L index.js to 'poll'. You can use this if you are using vagrant or docker on windows/mac.

Testing

  1. Copy config/test.dist.json to config/test.json and change it accordingly.
  2. To execute the tests:
cd /api
npm test

Frontend

- This content may not be up to date... we try to update it asap.

Getting started

Angular CLI (globally required):

Run npm install -g @angular/cli@latest to install the latest version of the angular cli globally.

How to use:

  1. Go to app/webFrontend/
  2. Run npm install in the root folder of the app
  3. Run npm start to use angular-cli serve

If you have problems with the angular-cli version try following:

  1. Create a new anglular-cli projekt ng new example-app
  2. Copy the folder ´/src´ from this project to the new project
  3. Run ng serve

This project was generated with angular-cli version 1.0.0-beta.17.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the angular-cli use ng --help or go check out the Angular-CLI README.

Contributuion

Please have a look at CONTRIBUTING.md

geli's People

Contributors

aeimer avatar alexweinfurter avatar cfsoe avatar d89 avatar grosspersky avatar khase avatar lkskrt avatar oliverneff avatar thomassss avatar

Watchers

 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.