GithubHelp home page GithubHelp logo

oraclepxx / angular7-example-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ismaestro/angular-example-app

0.0 2.0 0.0 8.36 MB

Angular 7 Example App + Angular CLI + Angular Material + Firebase

Home Page: https://angularexampleapp.com/

License: MIT License

Dockerfile 0.81% JavaScript 6.46% TypeScript 66.01% Shell 0.12% HTML 14.43% CSS 12.17%

angular7-example-app's Introduction

Logo

Angular Example App

Example app with Angular 7 + Angular CLI + Angular Material + Firebase
Base project made with much ❤️ . Contains CRUD, patterns, generated library, and much more!

LIVE DEMO
Demo example

Report bug · Request feature

Table of contents

Quick start

Warning

Verify that you are running at least node 8.9.x and npm 5.x.x by running node -v and npm -v in a terminal/console window. Older versions produce errors, but newer versions are fine.

  1. Go to project folder and install dependencies.
npm i
  1. Launch development server:
npm start

Note

You don't need to build the example library because it's published in npm and added as dependency of the project.

Status

travis Coverage Status Codacy Badge Known Vulnerabilities Conventional Commits dependency Status devDependency Status peerDependencies Status npm

GitHub stars GitHub forks

What's included

  • CRUD: create, update and remove heroes with Firebase!
  • Search bar, to look for heroes
  • Custom loading page
  • Modal and toasts (snakbar)!
  • Internationalization with ng-translate and ngx-translate-extract. Also use cache busting for translation files with webpack translate loader
  • Automatic translate script with Google Translate oO
  • Lazy loading modules
  • Service Workers
  • Dynamic Imports
  • Storage module (ngx-store)
  • More logical structure directory (from here)
  • Basic example library
  • Scroll restoration and anchor examples
  • Responsive layout (flex layout module)
  • SASS (most common used functions and mixins) and BEM styles
  • Animations!
  • Angular Pipes
  • Interceptors and Events (Progress bar active, if a request is pending)
  • Scroll to first invalid input in forms. (ngx-scroll-to-first-invalid)
  • Autocomplete enabled in forms
  • Modernizr (browser features detection)
  • Browser filter (Bowser) for IE ^^
  • Sentry! (logs any error in the app)
  • Google Tag Manager
  • Unit tests with Jasmine and Karma including code coverage
  • End-to-end tests with Protractor
  • ES6 Promises and Observables
  • Following the best practices!
Tasks Description
npm i Install dependencies
npm start Start the app in development mode
npm run test Run unit tests with karma and jasmine
npm run e2e Run end to end tests with protractor
npm run build Build the app for production
npm run build:library Build the library
npm run lint Run the linter (tslint)
npm run ci Execute linter and tests
npm run extract Generate all json files with the translations in assets folder
npm run translate Translate all keys remaining using Google Translate and using English language as the origin
npm run deploy Build the app and deploy it to firebase hosting
npm run bundle-report Build and run webpack-bundle-analyzer over stats json
npm run release Create a new release using standard-version
npm run docker Build the docker image and run the container
npm run update Update the project dependencies with ng update

Firebase

This repo is using Firebase. We use Cloud Firestore and Cloud Storage to handle CRUD operations over the heroes and to store their images.

Docker

You can build the image and run the container with Docker. The configuration is in the nginx folder if you want to change it.

docker build -t angularexampleapp .

docker run -d -p 4200:80 angularexampleapp

Travis CI

We use Travis CI to run this tasks in order:

  • Linter
  • Tests
  • Build for production

Bugs and feature requests

Have a bug or a feature request? Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Moreover, all HTML and CSS should conform to the Code Guide, maintained by Ismael Ramos.

Editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at https://editorconfig.org/.

Creators

Ismael Ramos

Buy Me a Coffee at ko-fi.com

Thanks

Thanks to all contributors and their support:

mansya - App logo!

If you have an idea or you want to do something, tell me or just do it! I'm always happy to hear your feedback!

Copyright and license

Code and documentation copyright 2018 the authors. Code released under the MIT License.

Enjoy 🤘

angular7-example-app's People

Contributors

ismaestro avatar mugan86 avatar mansya avatar dyeimys avatar carlchandev avatar herbertkarajan avatar scip92 avatar codacy-badger avatar codeimmortal avatar tomasfse avatar

Watchers

James Cloos avatar golfman 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.