maissani / packettestback

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PacketAI Tech Test Backend

Technical test for PacketAI.


Test Technique PacketAI


Created by Mehdi AISSANI

About

Test JavaScript dont le but est de reproduire le jeu TIC TAC TOE alias MORPION ( en francais ). Ce test incluera un diagrame D3JS des probabilités. Et si le temps me le permet une IA / Solution Mathématique pour jouer contre l'ORDINATEUR.

Features

This technical test includes the latest powerfull tools.

  • Typescript - Superset of JavaScript which primarily provides optional static typing, classes and interfaces.
  • Express.js- Handle Requests
  • Tslint - The pluggable linting utility.
  • Jest - Javascript testing framework
  • CucumberJS - Behavior Driven Devellopment framework using Gerkin Syntax unit & functional tests

Installation

$ git clone https://github.com/maissani/packettestback.git backend
$ cd backend
$ npm install

Usage


Devellopment

Create a .ENV File

MONGO_URL="mongodb://localhost:27017/packetaidev"

Run the server

$ yarn dev

Then run the test suite

$ yarn watch
or
$ yarn test

Production

Create a .ENV File

MONGO_URL="mongodb://localhost:27017/packetaiprod"

Compile the sources

$ yarn build

Then the server

$ yarn prod

About


Languages

Language:TypeScript 91.3%Language:Gherkin 7.8%Language:JavaScript 0.9%