{"id":22505527,"url":"https://github.com/maximebourdel/bourses-front-office","last_synced_at":"2025-06-14T13:39:13.154Z","repository":{"id":76973880,"uuid":"77860941","full_name":"maximebourdel/bourses-front-office","owner":"maximebourdel","description":"Front office for Angular2 projects using YAHOO API and Google Analytics API","archived":false,"fork":false,"pushed_at":"2017-05-05T23:08:47.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T23:27:15.657Z","etag":null,"topics":["angular2-cli","arborescence","google-analytics-api","rest-api","yahoo-api"],"latest_commit_sha":null,"homepage":"http://bourses-online.com","language":"TypeScript","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/maximebourdel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-02T20:48:43.000Z","updated_at":"2017-05-21T23:03:59.000Z","dependencies_parsed_at":"2023-03-11T23:45:03.474Z","dependency_job_id":null,"html_url":"https://github.com/maximebourdel/bourses-front-office","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maximebourdel/bourses-front-office","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximebourdel%2Fbourses-front-office","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximebourdel%2Fbourses-front-office/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximebourdel%2Fbourses-front-office/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximebourdel%2Fbourses-front-office/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximebourdel","download_url":"https://codeload.github.com/maximebourdel/bourses-front-office/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximebourdel%2Fbourses-front-office/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259824940,"owners_count":22917365,"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":["angular2-cli","arborescence","google-analytics-api","rest-api","yahoo-api"],"created_at":"2024-12-07T00:20:01.588Z","updated_at":"2025-06-14T13:39:13.137Z","avatar_url":"https://github.com/maximebourdel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bourses Front Office\n===================\n\n----------\n\nInstallation\n-------------\n\n### Arborescence\n\nL'arborescence doit être la suivante :\n\n/var/www/html/bourses\n:   - \u003cb\u003eapi\u003c/b\u003e (repository \u003cb\u003ebourses-api\u003c/b\u003e)\n:   - \u003cb\u003efront-office\u003c/b\u003e (repository \u003cb\u003ebourses-front-office\u003c/b\u003e)\n:   - \u003cb\u003egoogle-api\u003c/b\u003e (pas encore de repository)\n\n### Clonage \n\nLancer la commande suivante :\n```\n$ git clone https://github.com/maximebourdel/bourses-front-office.git\n```\n\n### Installation de npm, node et ng\nCette commande permet d'installer npm puis ng\n```\n$ apt-get install npm\n$ apt-get install ng-common\n$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -\n$ apt-get install -y nodejs\n$ npm install -g @angular/cli\n\n```\n\n### Installation des composants\n```\n$ npm isntall\n```\n\nVérification :\n```\n$ npm -v\n$ node -v\n$ ng -v\n```\nLa commande pour ng -v doit ressembler à ceci :\n```\n    _                      _                 ____ _     ___\n   / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\n  / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\n / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\n/_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\n               |___/\n@angular/cli: 1.0.0-rc.1\nnode: 6.10.0\nos: linux x64\n@angular/common: 2.4.9\n@angular/compiler: 2.4.9\n@angular/core: 2.4.9\n@angular/forms: 2.4.9\n@angular/http: 2.4.9\n@angular/platform-browser: 2.4.9\n@angular/platform-browser-dynamic: 2.4.9\n@angular/router: 3.4.9\n@angular/cli: 1.0.0-rc.1\n@angular/compiler-cli: 2.4.9\n\n```\n\n### Modification de l'API Industry\nAccéder au répertoire suivant \u003cb\u003e/bourses/front-office/src/app/yahoo/finance/industry\u003c/b\u003e dans le fichier suivant \u003cb\u003eindustry.service.ts\u003c/b\u003e et modifier la variable suivante :\n```ts\nbaseUrl = 'http://localhost:80/bourses/api/web/app_dev.php/';\n```\nEn suivant :\n```ts\nbaseUrl = 'http://bourses-online.com/api/app_dev.php/';\n```\n\n### Compiler le résultat\nAfin de compiler le projet, lancer la commande suivante :\n```\n$ ng build --prod\n```\nQui va créer un répertoire dist qui contiendra tout le code du projet compilé.\n\n### Configurer apache2\n\nDans le répertoire \u003cb\u003e/etc/apache2\u003c/b\u003e dans le fichier \u003cb\u003eapache2.conf\u003c/b\u003e , et ajouter à la fin du fichier :\n```\n\u003cVirtualHost *:80\u003e\n\n    ServerName bourses-online.com\n    ServerAlias www.bourses-online.com\n\n    Alias /api /var/www/html/bourses/api/web\n\n    DocumentRoot /var/www/html/bourses/front-office/dist\n\n    \u003cDirectory /var/www/html/bourses/front-office/dist\u003e\n        AllowOverride None\n        Order Allow,Deny\n        Allow from All\n\n        RewriteEngine on\n\n        # Don't rewrite files or directories\n        RewriteCond %{REQUEST_FILENAME} -f [OR]\n        RewriteCond %{REQUEST_FILENAME} -d\n        RewriteRule ^ - [L]\n\n        # Rewrite everything else to index.html\n        # to allow html5 state links\n        RewriteRule ^ index.html [L]\n\n\n    \u003c/Directory\u003e\n\n\u003c/VirtualHost\u003e\n```\nRedémarrer ensuite apache et son composant a2enmod :\n```\n$ sudo a2enmod rewrite\n$ sudo service apache2 restart\n```\n\n\n### Installation de Google API Analytics\n\n### Modification de l'API Industry\nAccéder au répertoire suivant \u003cb\u003e/bourses/front-office/src/app/google/analytics\u003c/b\u003e dans le fichier suivant \u003cb\u003eapi.service.ts\u003c/b\u003e et modifier la variable suivante :\n```ts\nlet url: string = 'http://localhost:8081/bourses/google-analytics';\n```\nEn suivant :\n```ts\nlet url: string = 'http://5.39.77.232:8081/bourses/google-analytics';\n```\n\nAprès avoir importé le projet google-api lancer la commande suivante :\n```\n$ nohup node /var/www/html/bourses/google-api/server.js \u0026\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximebourdel%2Fbourses-front-office","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximebourdel%2Fbourses-front-office","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximebourdel%2Fbourses-front-office/lists"}