GithubHelp home page GithubHelp logo

diplomatiegouvfr / generator-hornet-js-lite-batch Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 111 KB

Template de création de la partie nodejs de Hornet Lite Batch

License: Other

JavaScript 2.09% TypeScript 2.98% Shell 2.15% Groovy 1.60% TSQL 91.18%

generator-hornet-js-lite-batch's Introduction

generator-hornet-js-lite-batch

Description

Le module Node « generator-hornet-js-lite-batch » contient les éléments de création d'une application Hornet JS Lite Batch. Il est utilisable avec Yeoman.

Pré-requis

  • NodeJS 10.X
  • hornet-js-builder : 2.X.X installé en global:
    $ npm install -g hornet-js-builder

Utilisation

Yeoman

Yeoman est un outil permettant de construire des outils de génération de projets. Celui-ci s'appuie sur plusieurs composants dont Yo qui s'occupe plus spécifiquement de l'aspect génération.

Hornet JS propose un générateur d'application basé sur Yo.

Pour installer Yeoman, exécuter la ligne de commande suivante :

$ npm install -g yo

Installation du générateur

$ npm install -g generator-hornet-js-lite-batch

Initialisation d'un projet

Tout d'abord, il vous faut créer un dossier pour accueillir votre nouveau projet :

$ mkdir nom_de_l_application
$ cd nom_de_l_application

Dans le répertoire destiné à accueillir le code de l'application, exécuter la ligne de commande suivante pour débuter la génération d'un nouveau projet basé sur hornet-js-lite-batch :

$ yo hornet-js-lite-batch

Le générateur va vous demander plusieurs informations nécessaires à l'initialisation de votre projet Hornet JS :

  • Nom de votre projet: (nom_de_l_application) : par défaut, le nom du répertoire est suggéré comme nom technique du projet
  • Version de votre projet: (1.0.0) : version du projet (1.0.0 par défaut).
  • Description de votre projet : un texte court présentant succintement le projet.
  • Version du framework (hornet-js): (5.x.x) : version du framework hornet-js (5.x.x par défaut identique à generator-hornet-js).
  • ContextPath de la partie batch (batch : terme utilisé dans les routes après le nom de l'application (ex http://localhost:8888/nom_de_l_application/batch/nom_de_la_route)

Le processus d'initialisation vous indique ensuite les fichiers créés :

Options avancées

Paramètre nom du projet

Il est possible de fournir directement le nom du projet à la ligne de commande :

$ yo hornet-js-lite-batch nom_de_l_application

Dans ce cas, la première question n'est pas posée et la valeur passée en paramètre est utilisée.

Actions post-génération

Récupération des dépendances

Une fois le projet initialisé, vous devez lancer l'installation des dépendances Node.js avec la commande suivante :

$ hb install

Configuration

Si vous souhaitez modifier la configuration de l'application, vous pouvez éditer le fichier suivant :

  • config\default.json

Démarrage de l'application

Pour exécuter votre nouvelle application, utilisez la commande suivante :

$ npm start

Puis, utiliser un navigateur web pour y accéder par l'url [http://localhost:8888/nom_de_l_application/batch/nom_de_la_route].

Licence

generator-hornet-js_lite_batch est sous licence cecill 2.1.

Site web : http://www.cecill.info

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.