Giter Site home page Giter Site logo

projectnodejsl260_mael_fiaudrin's Introduction

Maël FIAUDRIN - Projet nodeJs L260 - LP : DWBD

Etapes pour utiliser le projet

Récupération du projet

Saisissez dans un terminal la commande : git clone https://github.com/fiaudrin1/projectNodeJsL260_Mael_FIAUDRIN.git

Puis entrez dans le dossier le projet téléchargé : cd projectNodeJsL260_Mael_FIAUDRIN

Récupérer les variables d'environnemments

Effectuez dans votre terminal les commandes :

npm install -g

npm i @hapi/glue

Lancer le serveur

Vous devrez tout d'abord vous assurer que vos services wamp sont ouverts pour que le projait ait accès à la base de donnée. Les informations de connexion à la base de donnée se trouvent dans le fichier manifest.js. Si vous rencontrez un problème au niveau de la connexion à la base de donnée, il faudra certainement changer les valeurs des variables user, password et database.

Pour lancer le serveur, entrez dans votre terminal : node server ou npm start

Accèder au projet sur internet

Lancez votre navigateur et entrez dans l'url : http://localhost:3000/documentation

Tester le projet

Vous pouvez désormais tester le projet. Vous aurez à créer un utilisateur à travers la route "POST user".

Ensuite vous devrez vous connecter avec cet utilisateur au sein de la route POST /user/login, et vous authentifier avec le bouton "authorize" situé en haut à droite.

Vous devrez entrer "bearer " suivi du code obtenu lors de l'authentification.

projectnodejsl260_mael_fiaudrin's People

Contributors

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