Giter Club home page Giter Club logo

cdd-test-technique's Introduction

Test technique pour Clac des doigts

consigne

Pour ce test technique j'ai choisis MongoDB pour la base de donnée.

Voici les différentes routes de l'API :

  1. Récupérer tous les poulets => GET http://localhost:8000/chicken
  2. Ajouter un poulet => POST http://localhost:8000/chicken
Champs Type Obligatoire
name String Oui
birthday Date Non
weight Number Oui
  1. Récupérer les informations d'un poulet avec son ID => GET http://localhost:8000/chicken/:id
  2. Modifier les informations d'un poulet avec son ID => PUT http://localhost:8000/chicken/:id
  3. Supprimer un poulet avec son ID = DELETE http://localhost:8000/chicken/:id
  4. Faire avancer un poulet d'un pas avec son ID => POST http://localhost:8000/chicken/run/:id
  5. Faire avancer un poulet avec un nombre de pas choisi avec son ID et un query params "steps" => POST http://localhost:8000/chicken/run/:id?steps=number

Mes ajouts :

  • Ajout d'un script pour l'installation
  • Au lieu de seulement faire avancer le poulet de 1 step, j'ai préféré rajouté la possibilité choisir le nombre de pas qu'on souhaite.
  • Ajout d'un fichier fixtures.js pour avoir déjà des poulets dans la base de donnée

Installation :

  1. git clone [email protected]:nerfic/cdd-test-technique.git
  2. cd cdd-test-technique
  3. sh install.sh // Sert à installer les packages npm et les fixtures
  4. node index.js

cdd-test-technique's People

Contributors

nerfic 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.