GithubHelp home page GithubHelp logo

kldavis4 / copcast-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leonicolas/copcast-admin

0.0 3.0 1.0 2.33 MB

Angular client for the Copcast solution

Home Page: https://igarape.org.br/en/smart-policing/

JavaScript 63.26% HTML 23.67% CSS 13.05% Smarty 0.02%

copcast-admin's Introduction

Build Status Code Climate

Copcast Admin

Copcast Admin is part of the Copcast solution to help improve police accountability using mobile phones to record the video and the audio and register their GPS location.

Copcast Admin is developed with AngularJS

Installation

First, install Node.js in your development machine. We are using, currently, version 0.10.40.

With node installed, install Bower, Gulp, Karma and PhantomJs (the last two, to run the tests). And then, run npm install and bower install for the packages in the root of the project.

  npm install -g bower
  npm install -g gulp
  npm install -g karma
  npm install -g node-gyp
  npm install phantomjs
  
  npm install
  bower install

Now you have Copcast Admin installed. To connect it with the server, you must have installed Copcast Server. If you did not install it yet, this is the time!

To connect Copcast Admin with the server, you must create a config.js file inside the directory src/app and include the folowing line

angular.module('copcastAdminApp').constant('ServerUrl', '<SERVER URL>');

IMPORTANT: we user cookie's validation to guarantee that all requests are authenticated (even requests straigth from the HTML). The domain of Copcast Server must be the same from Copcast Admin.

Now finally run the app:

  gulp copy-bs-fonts
  gulp serve

or

  gulp server

Deployment

Gulp is not suited for the production environment and you should use a real web server for the task, like Apache or Nginx. Once you have configured your web server, you can instruct gulp to build your files with:

  gulp

The generated files will be deployed to the dist directory, which should serve as your web root.

If you want to have your service running under HTTPS, configure your web server as usual and do not forget to omit the schema part from the ServerUrl.

To test copcast completely, you must have also the Copcast Android app installed in an Android phone and connected to the Copcast Server.


Copcast Admin is developed by Instituto Igarapé as part of the Smart Policing Project.

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.