GithubHelp home page GithubHelp logo

krishnaveniteck / angular-seed-with-php-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kotsis/angular-seed-with-php-backend

0.0 0.0 0.0 120 KB

Angular 5 based seed project with Bootstrap theme and a php API on the backend.

PHP 3.80% TypeScript 63.50% JavaScript 7.70% HTML 21.40% CSS 3.60%

angular-seed-with-php-backend's Introduction

Angular seed with php backend

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.

  1. Bootstrap enabled with a top menu.
  2. Login popup in secondary route.
  3. PHP placeholder API for user management e.g. login, logout
  4. Protected route for logged in users only.

Requirements

You need locally php, composer, node, npm and @angular/cli

Usage for development

Do these steps:

  1. git clone [email protected]:kotsis/angular-seed-with-php-backend.git
  2. cd angular-seed-with-php-backend/api
  3. composer install
  4. cd ..
  5. npm install
  6. npm start

Now you can view the application in localhost:4200 and the API runs in localhost:8000/api/

Code scaffolding

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.

Build Angular for production

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

angular-seed-with-php-backend's People

Contributors

kotsis avatar angular-cli avatar

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.