{"id":19903832,"url":"https://github.com/whaha-ha/angular-symfony","last_synced_at":"2026-02-11T06:04:09.879Z","repository":{"id":139411221,"uuid":"538572404","full_name":"WHAHA-HA/angular-symfony","owner":"WHAHA-HA","description":"Project Bootstrap for an Angular + Symfony project","archived":false,"fork":false,"pushed_at":"2022-09-19T15:40:23.000Z","size":649,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-26T08:43:48.755Z","etag":null,"topics":["angular","bootstrap","docker","jwt-authentication","rest-api","symfony"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WHAHA-HA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-09-19T15:36:15.000Z","updated_at":"2022-10-03T08:18:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"d07568a8-2c5c-45fb-b499-a29f0356ea62","html_url":"https://github.com/WHAHA-HA/angular-symfony","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WHAHA-HA/angular-symfony","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHAHA-HA%2Fangular-symfony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHAHA-HA%2Fangular-symfony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHAHA-HA%2Fangular-symfony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHAHA-HA%2Fangular-symfony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WHAHA-HA","download_url":"https://codeload.github.com/WHAHA-HA/angular-symfony/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHAHA-HA%2Fangular-symfony/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","bootstrap","docker","jwt-authentication","rest-api","symfony"],"created_at":"2024-11-12T20:25:38.923Z","updated_at":"2026-02-11T06:04:09.865Z","avatar_url":"https://github.com/WHAHA-HA.png","language":"TypeScript","readme":"angular-symfony [![Build Status](https://travis-ci.org/FlyersWeb/angular-symfony.svg?branch=master)](https://travis-ci.org/FlyersWeb/angular-symfony)\n===============\n\nProject Bootstrap for an Angular 2+ and Symfony 4+ webservices project.\n\nIntroduction\n------------\n\nThis project is a template application with a secured RestFul API communication via JWT security scheme.\n\nInstallation\n------------\n\nInstall docker and docker-compose.\n\nClone the project :\n\n\tgit clone git@github.com:FlyersWeb/angular-symfony.git\n\nLaunch dockerized environment :\n\n\tdocker-compose up -d\n\nLog in application docker image :\n\n\tdocker-compose exec application bash\n\nInstall dependencies :\n\n\tcomposer install\n\nCreate database if necessary :\n\n  php bin/console doctrine:database:create\n\nCreate schemas (FOSUserBundle) :\n\n\tphp bin/console doctrine:schema:create\n\nCreate and activate user :\n\n\tphp bin/console doctrine:fixtures:load\n\nAccess the front end using port 4200 :\n\n\tfirefox http://localhost:4200 \u0026\n\nLaunching tests\n---------------\n\nIf you want to contribute to project you'll need to have tests to pass. So in order to run them you'll need to :\n\nLog in application docker image :\n\n\tdocker-compose exec application bash\n\nUpdate database connection information in `.env.test`\n\nCreate database :\n\n  php bin/console doctrine:database:create --env=test\n\nCreate schemas (FOSUserBundle) :\n\n\tphp bin/console doctrine:schema:create --env=test\n\nCreate and activate user :\n\n\tphp bin/console doctrine:fixtures:load --env=test\n\nCopy Phpunit config :\n\n  cp phpunit.xml.dist phpunit.xml\n\nLaunch tests using :\n\n  bin/phpunit\n\nAuthentication system\n---------------------\n\nThe Authentication system is based on the JWT token as implemented by [Lexik](https://github.com/lexik/LexikJWTAuthenticationBundle)\n\nUser management is done through [FOSUserBundle](https://github.com/FriendsOfSymfony/FOSUserBundle), you can easily add / edit / delete users by using their API.\n\nThe server provides a Rest API using [FOSRestBundle](https://github.com/FriendsOfSymfony/FOSRestBundle) allowing you to connect using the following query: \n\n`curl -X POST -H \"Content-Type: application/json\" http://localhost:8000/api/login_check -d '{\"username\":\"bob\",\"password\":\"Abc123\"}'`\n\nClient Side specifics\n---------------------\n\nOn the client side, I've inspired my code from Angular official documentation about HttpInterceptor, allowing me to send the JWT Token on each HTTP request when token is available.\n\nThe token is sent in *Authorization* headers: \n\n`Authorization: Bearer xxx`\n\nLICENSE\n-------\n\nThis program is free software. It comes without any warranty, to the extent permitted by applicable law.\n\nThis software is LICENSED under the MIT License. Use it at your own risk.\n\nWARNING\n-------\n\nServers are configured for developments purposes. Do not deploy this project on production as is. You should have a look to [Symfony deployment documentation](https://symfony.com/doc/4.4/deployment.html) for the Back-end and the [Angular deployment documentation](https://angular.io/guide/deployment) for the Front-End part.\n\nYou should also change the preconfigured keys for signatures by generating your own keys using :\n\n  openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096\n  openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout\n\nAnd copy the passphrase into the field `JWT_PASSPHRASE` in `.env` file.\n\nYou should also update the `APP_SECRET` in `.env` file.\n\nConclusion\n----------\n\nYou can use this template and adapt it to your needs.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhaha-ha%2Fangular-symfony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhaha-ha%2Fangular-symfony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhaha-ha%2Fangular-symfony/lists"}