Git Product home page Git Product logo

stylo's Introduction

Stylo

Stylo est un éditeur de textes pour articles scientifiques en sciences humaines et sociales.

L'environnement de travail de Stylo intègre une chaîne éditoriale complète basée sur pandoc et outillée des modules suivants :

  • un éditeur de métadonnées
  • un versionnage
  • une gestion de la bibliographie
  • différents formats exports : html5, xml (TEI, Erudit), pdf...
  • l'annotation
  • le partage de document

Stylo est disponible sur stylo.huma-num.fr

Plus d'informations sur la documentation.

Pré-requis

Sous MacOS

brew tap mongodb/brew

brew install pandoc mongodb-community nvm
brew install --cask docker

nvm install v18 --default

Développement local

L'application se lance en combinant une base de données MongoDB, et des applications Node.js (v18+).

La première fois que vous installez le projet, lancez ces commandes :

cp stylo-example.env stylo.env
npm clean-install
npm --prefix front clean-install
npm --prefix export clean-install
npm --prefix graphql clean-install

Sans Docker

Avant un premier lancement, la variable SE_GRAPHQL_TOKEN doit être renseignée dans stylo.env à l'aide de la valeur produite par cette commande :

DOTENV_CONFIG_PATH=stylo.env NODE_OPTIONS="--require dotenv/config" npm run --prefix graphql generate-service-token --silent

Ensuite, ainsi que le reste du temps :

mongod --config /usr/local/etc/mongod.conf --fork
npm run dev

Avec Docker

Avant un premier lancement, la variable SE_GRAPHQL_TOKEN doit être renseignée dans stylo.env à l'aide de la valeur produite par cette commande :

docker compose run -ti --build --rm graphql-stylo npm run generate-service-token --silent

Ensuite, ainsi que le reste du temps :

docker compose up mongodb-stylo export-gateway pandoc-api
npm run dev

L'interface web de Stylo est alors disponible sur (localhost:3000).
L'API fonctionne sur localhost:3030 et le service d'export sur localhost:3060.

Installation

Pour installer une instance Stylo en tant que service à disposition d'utilisateur·ices, veuillez suivre la documentation dédiée dans le fichier HOWTO.md.


License: GPL v3

stylo's People

Contributors

pookmook avatar ggrossetie avatar thom4parisot avatar mmellet avatar antoinentl avatar loup-brun avatar lakonis avatar francoismaltais avatar rochdly avatar orsimey avatar exalted avatar marviro avatar dependabot[bot] avatar dmathelier avatar davidbgk avatar mattheyje avatar bplmp avatar sk2108 avatar giuliaferretti12 avatar marieflorescontact avatar mathildevrst avatar teopost avatar vinber avatar

Watchers

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