Giter Club home page Giter Club logo

awesome-codegouvfr-tooling's Introduction

Awesome codegouvfr: the tooling API

This repository provides tooling for Awesome CodeGouvFr.

E.g. given a repository, it can generate a first draft of its publiccode.yml file.

Quickstart

npm install
npm start

Generate publiccode.yml

After you quickstarted as explained above, here is how to generate a publiccode.yml file given a repository URL, with automatic completion of certain fields from the ecosyste.ms summary API:

# Generate publiccode.yml for react-dsfr project
curl http://localhost:3000/publiccode?repository_url=https://github.com/codegouvfr/react-dsfr

Accepted URLs are all those who return data on summary.ecosyste.ms.

License

Code in this respository is published under the MIT License.

awesome-codegouvfr-tooling's People

Contributors

bzg avatar hjonin avatar

Watchers

 avatar  avatar

awesome-codegouvfr-tooling's Issues

TypeError: Cannot read properties of null (reading 'full_name')

J'ai essayé d'utiliser le générateur mais quand je lance la commande
de génération (requete curl) avec cette adresse : curl http://localhost:3000/publiccode?repository_url=https://github.com/EsupPortail/Esup-Pod/

voici l'erreur générée :

Server listening on port 3000
TypeError: Cannot read properties of null (reading 'full_name')
    at ecosystemToPubliccodeMapping (/tmp/
awesome-codegouvfr-tooling/tools.js:39:36)
    at Object.ecosystemToPubliccode (/tmp/
awesome-codegouvfr-tooling/tools.js:114:28)
    at process.processTicksAndRejections (node:internal/process/
task_queues:95:5)

Allow publiccode.yml synchronisation

This API currently only creates a publiccode.yml file from scratch. It would be nice to be able to synchronise an existing publiccode.yml with fresher data.

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.