Git Product home page Git Product logo

dockerfinal's Introduction

Gestionnaire de Tâches avec Fastify et MongoDB

Ce projet est une application de gestion de tâches simple construite avec Fastify et MongoDB.

Installation

Assurez-vous d'avoir Node.js et Docker installés sur votre machine.

  1. Clônez ce dépôt :
    git clone https://github.com/votre-utilisateur/votre-projet.git
    cd votre-projet
    
  2. Installez les dépendances :
    npm install
    
  3. Lancez l'application avec Docker Compose :
    docker-compose up -d
    

Configuration

  • L'application utilise une base de données MongoDB.
  • Assurez-vous que le service MongoDB est accessible à l'URL spécifiée dans app.js ou configurez-le avec une URL personnalisée.

Utilisation

L'application expose des API REST pour la gestion des tâches. Vous pouvez utiliser des commandes curl ou tout autre client HTTP pour interagir avec ces API.

Exemples de Commandes curl :

  • Créer une nouvelle tâche :
    curl -X POST -H "Content-Type: application/json" -d '{"nom": "Tâche 1", "description": "Description de la tâche 1", "statut": "En cours", "dateCreation": "2023-12-08"}' http://localhost:{port}/tasks
    
  • Récupérer toutes les tâches :
    curl http://localhost:{port}/tasks
    
  • Récupérer une tâche par son ID :
    curl http://localhost:{port}/tasks/{task_id}
    
  • Mettre à jour une tâche par son ID :
    curl -X PUT -H "Content-Type: application/json" -d '{"nom": "Tâche mise à jour", "description": "Description mise à jour", "statut": "Terminée", "dateCreation": "2023-12-09"}' http://localhost:{port}/tasks/{task_id}
    
  • Supprimer une tâche par son ID :
    curl -X DELETE http://localhost:{port}/tasks/{task_id}
    

Authors

dockerfinal's People

Contributors

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