Coder Social home page Coder Social logo

daniloaleixo / angularfirebase_seed Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8.73 MB

Angular and Firebase server integration seed (includes Redux store and Angular material for UI)

License: MIT License

TypeScript 80.02% JavaScript 5.20% Shell 0.23% HTML 11.29% CSS 3.26%
angular2 angularfire2 firebase firebase-database seed seed-app material-design material-ui redux ngrx-store

angularfirebase_seed's Introduction

A seed for Angular2 apps with Firebase server

Introduction

This project is an application skeleton for a typical Angular web app integrated with firebase database. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects. It's based mainly in angular-cli project integrated with Firebase and using angular material and Redux

The seed contains a sample Angular application which has to be linked with a valid firebase database

Features included

  • Angular4
  • Firebase Server integration
  • Firebase Auth integration
  • Redux store
  • Angular Material
  • MaterializeCSS

Getting Started

To get you started you can simply clone the AngularFirebase-seed repository and install the dependencies:

Prerequisites

You need git to clone the AngularFirebase-seed repository. You can get git from here.

We also use a number of Node.js tools to initialize and test angular-seed. You must have Node.js and its package manager (npm) installed. You can get them from here.

Clone AngularFirebase-seed

Clone the AngularFirebase-seed repository using git:

git clone https://github.com/daniloaleixo/AngularFirebase_seed.git
cd AngularFirebase-seed

Install Dependencies

We have preconfigured npm to automatically run and install the dependencies:

npm install

Install firebase CLI

npm install -g firebase-tools
firebase login

And then select your already created firebase project.

You have to also import it in your environment variables, so just simply open the enviroment files and modify the firebase info to the info provided by the project.

Run the Application

We have preconfigured the project with a simple development web server. The simplest way to start this server is:

ng serve

Now browse to the app at localhost:4200/

Directory Layout

app/                    --> all of the source files for the application
  auth/                 --> module which handles authentication and login page
  init/                 --> init module
  shared/               --> a lot of code the will be used across the app
    actions/            --> redux store actions
    components/         --> shared components
    constants/          --> app constants
    models/             --> all the models of the app
    reducers/           --> redux store reducers
    services/           --> all app services (can be separated in singletons and services)
    stylesheets/        --> all app's stylesheets (which will use BEM structure)
  test/                 --> test module
  app.component.spec.ts --> unit test for app component
  app.component.ts      --> app component which in the root of the app
  app.module.ts         --> module
  app.routes.ts         --> routes schema
  app.store.ts          --> redux store definition
  home.component.ts     --> home component handles all component within the app (which has the header)

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

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. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

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.