Git Product home page Git Product logo

koans's Introduction

Build Status

A Platform for Programming Exercises in Typescript and Javascript

https://ilovecode.herokuapp.com/

Features

  • Creation of exercise series with template code and assertions
  • Support for Typescript and Javascript
  • Automatic verification of user solution and instant feedback
  • Exercise search
  • Authentication

Technology Stack

Installation

1. Clone the repository

git clone https://github.com/judithgull/koans.git

2. MongoDB

Install

See: https://docs.mongodb.org/manual/installation/

Create Data directory

mkdir -p /data/db

Ensure that the user account running mongod has read and write permissions for the directory.

Test, if db is running:

mongod
Setup

Add text index (for search) and sample data:

Start mongodb, if not already started:

mongod

In a different terminal: Move to the project home (location of the cloned repo):

cd <path_to_cloned_project>/koans

Import sample data:

mongoimport --db koans --collection topics app-node/sample-data/topics.bson

Add textindex for search:

mongo --eval "db.getSiblingDB('koans').topics.createIndex({title: 'text', 'items.title': 'text','items.description': 'text'})"

3. Nodejs

Install Node.js (This will also install npm).

4. Dependencies

Move to the project home (location of the cloned repo):

cd <path_to_cloned_project>/koans

Run npm install to install all dependencies. (npm, patched libraries)

5. Run

Make sure mongodb is running:

mongod

Run npm start to start application (in a different terminal)

Open browser with [http://localhost:3000] (http://localhost:3000)

Development

1. Webstorm

  1. Use the latest Webstorm 11.0 or higher
  2. Make sure the appropriate typescript compiler is used >= 1.6.2: Preferences/Languages & Frameworks/Typescript
  • Compiler version (2.5 (bundeled)
  • Use tsconfig.json

Maintenance tasks

MongoDB

Drop

Only if you need to drop the db for any reason use:

Make sure db is started:

mongod

(in a different terminal)

mongo koans --eval "db.dropDatabase()"

koans's People

Contributors

judithgull avatar corinneroelli avatar

Watchers

James Cloos avatar Ian Doyle 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.