• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

judithgull/koans: A Platform for Programming Exercises in Typescript and Javascr ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

judithgull/koans

开源软件地址:

https://github.com/judithgull/koans

开源编程语言:

TypeScript 77.6%

开源软件介绍:

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()"



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap