GithubHelp home page GithubHelp logo

masterfacilitylist / mfl_admin_web Goto Github PK

View Code? Open in Web Editor NEW
3.0 16.0 6.0 4.74 MB

This is the administration ( backend ) web application

License: MIT License

JavaScript 65.33% HTML 21.83% CSS 12.71% Shell 0.09% Python 0.05%

mfl_admin_web's Introduction

mfl_admin_web

This is the administration web application of the the Kenyan MFL v2.

Circle CI

Grunt

Sauce Test Status

Project organization

The project's structure has been derived from ng-boilerplate

mfl_admin_web/
  |- coverage/    #  contains coverage output
  |- build/    # contains output of the build process, used to serve files in development
  |- bin/    # contains output of the compile process, used to serve files in production
  |- karma/    # contains configuration for karma
  |  |- karma-unit.tpl.js
  |- src/      # contains the source code of the application
  |  |- app/      # contains the source code of the angular app and app-specific code
  |  |  |- app1    # a single app
  |  |  |  |- tpls      # contains app1's templates/partials
  |  |  |  |  |- app1.tpl.html
  |  |  |  |  |- app2.tpl.html
  |  |  |  |- tests      # contains app1's tests
  |  |  |  |  |- module.spec.js
  |  |  |  |  |- routes.spec.js
  |  |  |  |  |- controllers.spec.js
  |  |  |  |- module.js      # contains app1's module definition
  |  |  |  |- routes.js      # contains app1's states
  |  |  |  |- controllers.js # contains app1's controllers
  |  |  |  |- ...
  |  |  |- app2
  |  |  |- app3
  |  |  |- ...
  |  |- assets/      # contains the application's assets
  |  |  |- <static files>
  |  |- less/        # contains the application's less files
  |  |  |- main.less
  |  |- settings.js  # contains the application's 'environment' configuration
  |- vendor/
  |- .bowerrc
  |- bower.json
  |- build.config.js
  |- changelog.tpl
  |- circle.yml
  |- .gitignore
  |- .jshintrc
  |- Gruntfile.js
  |- module.prefix
  |- module.suffix
  |- package.json

Development

All the commands in this section assume that the current working directory is the root of the project.

Requirements

The project requires nodejs to be installed in your system

Getting started

First install npm and bower dependencies

$ npm install

The command shall install bower dependencies right after npm dependencies are installed.

If grunt or bower are not installed globally in your system or you want to use the ones installed by the project, you may have to add the bin directory in node_modules to system PATH.

export PATH="$(npm bin):$PATH"

Development environment

Run grunt connect:dev to serve files. This server uses development only files.

To automatically build files after changes, run grunt watch.

If you don't want to have automatic builds, run grunt build to build files.

Production environment

To see what is going to be used in production, run

$ grunt

or

$ grunt build
$ grunt compile

This will create the 'compiled' files in the bin directory.

The files can then be served using

$ grunt connect:prod

Testing

Running tests is as easy as running

$ grunt test

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.