This project is an Angular 5 based seed project with Bootstrap theme and a php API on the backend. The AngularJS seed project has been an inspiration.
This project was generated with Angular CLI version 1.7.3 for Angular 5.
- Bootstrap enabled with a top menu.
- Login popup in secondary route.
- PHP placeholder API for user management e.g. login, logout
- Protected route for logged in users only.
You need locally php, composer, node, npm and @angular/cli
Do these steps:
git clone git@github.com:kotsis/angular-seed-with-php-backend.gitcd angular-seed-with-php-backend/apicomposer installcd ..npm installnpm start
Now you can view the application in localhost:4200 and the API runs in localhost:8000/api/
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the Angular project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.
Run composer install in api/ directory and serve this directory.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.