Giter VIP home page Giter VIP logo

rendu-nodejs's Introduction

Rendu NodeJs

Installation

Pour installer le projet

  • configurer un .env
  • $ npm install
  • $ npm start

Fonctionnalités

  • Routes de connexion
  • Routes CRD pour le chat
  • Vérification des champs

Routes de l'api en GET

api/auth/

DESCRIPTION Liste des routes disponibles pour Auth

PARAMETRES D'ENTREE

PARAMETRE DE SORTE
JSON {
    'Route': {
        '/': 'Liste des routes disponibles',
        '/register': 'Inscription de l'utilisateur',
        '/login': 'Connexion de l'utilisateur',
    }
}

api/chat/

DESCRIPTION Liste des routes disponibles pour Chat

PARAMETRES D'ENTREE

PARAMETRE DE SORTE
JSON {
    'Route': {
        '/': 'Liste des routes disponibles',
        '/message': 'CRD des messages',
    }
}

api/chat/message

DESCRIPTION Liste de l'ensembles des messages disponibles

PARAMETRES D'ENTREE

PARAMETRE DE SORTE
JSON {
    "message": "",
    "err": null,
    "data": {
        "messages": [
            {

            },
            {

            },
            {

            },
            {

            }
        ]
    }
}

Routes de l'api en POST

/api/auth/register

DESCRIPTION Inscription de l'utilisateur

PARAMETRES D'ENTREE
@first_name         : String
@last_name          : String
@email              : String
@password           : String

PARAMETRE DE SORTE
JSON {
    "message": "",
    "error": {
    },
    "data": null
}

/login

DESCRIPTION Connexion d'un utilisateur

PARAMETRES D'ENTREE
@email              : String
@password           : String

PARAMETRE DE SORTE
JSON {
    "message": "",
    "err": null,
    "data": {
        "user": {
        },
        "token": ""
    }
}

api/chat/message

DESCRIPTION Création d'un message

PARAMETRES D'ENTREE
@message            : String
@token              : String

PARAMETRE DE SORTE
JSON {
    "message": "",
    "err": null,
    "data": {
    }
}

Routes de l'api en DELETE

/api/auth/message

DESCRIPTION Suppressiond d'un message (seulement si on est celui qui l'a soumit)

PARAMETRES D'ENTREE
@id                 : String
@token              : String

PARAMETRE DE SORTE
JSON {
    "message": "",
    "err": null,
    "data": {
        "n": 0,
        "ok": 1
    }
}

rendu-nodejs's People

Contributors

yamshadow avatar

Watchers

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