{"id":22086259,"url":"https://github.com/probablyclem/esginodeapi","last_synced_at":"2025-03-23T22:18:34.879Z","repository":{"id":47873056,"uuid":"515615408","full_name":"ProbablyClem/EsgiNodeApi","owner":"ProbablyClem","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-21T13:27:03.000Z","size":711,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T05:28:25.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProbablyClem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-19T14:19:08.000Z","updated_at":"2022-07-19T16:33:21.000Z","dependencies_parsed_at":"2022-09-09T16:22:31.066Z","dependency_job_id":null,"html_url":"https://github.com/ProbablyClem/EsgiNodeApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2FEsgiNodeApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2FEsgiNodeApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2FEsgiNodeApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProbablyClem%2FEsgiNodeApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProbablyClem","download_url":"https://codeload.github.com/ProbablyClem/EsgiNodeApi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175541,"owners_count":20572794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T01:22:41.635Z","updated_at":"2025-03-23T22:18:34.857Z","avatar_url":"https://github.com/ProbablyClem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EsgiNodeApi\nClément Guiton B3 ESGI AL\n## Consignes\n    - CRUD\n    - Authentication\n    - Connexion base de donnée\n    - Upload de fichier\n    - Validation\n    - Utilisation des modules ecmascript\n## Setup\n - Créer un fichier .env avec la variable DB_STRING qui contient l'url de la base de données\n - \n```console\n$ npm install\n$ node index.js\n```\n\n## Hierarchie\n\n\n```\nproject\n│   index.js //fichier principal    \n│\n└───routes //Contiens les endpoits avec la validation\n│     |   ligneCompta.js ///logique metier\n│     |   auth.js //authentication\n│\n└───controllers //contient la logique et les interactions avec la bdd\n│     |   ligneCompta.js ///logique metier\n│     |   auth.js //authentication\n|\n|\n└───models //contiens les objets metiers\n│     |   ligneCompta.js ///logique metier\n│     |   auth.js //authentication\n|\n|\n└───factures //contiens les factures envoyées par le client\n│   \n|\n└───middleware //fonctions appelés avant les endpoits\n      │   is-auth.js //permet de verifier que l'utilisateur est identifié\n```\n\n## Documentation Swagger\nPour acceder au swagger: \n    - Lancer le server ($ node index.js)\n    - Acceder a l'url: http://localhost:3000/api-docs","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablyclem%2Fesginodeapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobablyclem%2Fesginodeapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablyclem%2Fesginodeapi/lists"}