scorelab/DroneSym

Name: DroneSym

Owner: Sustainable Computing Research Lab

Description: Dronesym is a platform enabling users to handle and track their drone fleets in real time. Users can have functionality to add new drones configure their flight paths and monitor their progress through a web dashboard.

Created: 2017-03-21 06:01:44.0

Updated: 2018-03-25 18:58:25.0

Pushed: 2018-03-25 19:23:47.0

Homepage: null

Size: 299

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DroneSym

Build Status

Setting Up the Project
Prerequisites
  1. Install Node.js 6.x (or higher)
  2. Python version 2.7
Part 1 - Setting up the Node environment
  1. After cloning the repo navigate to dronesym-node folder
  2. Run npm install to pull the dependencies
  3. Create a firebase admin sdk private key following the instructions found here: https://firebase.google.com/docs/admin/setup#add_firebase_to_your_app
  4. In db.js file provide the path to your firebase key file and the database url
  5. Import the database with mongorestore --db dronesym dronedb/dronesym
  6. Run npm start to start the Node server

Note: Make sure you have an admin account in the database under user collection. (Refer the schema in Models folder)

Part 2 - Setting up Python environment
  1. After cloning the repo, navigate to the folder dronesym-python
  2. Run sudo pip install -r requirements.txt to pull the dependencies
  3. Navigate to dronsym-python/flask-api/src folder
  4. Run python main.py to start the Flask server Note: Node server should be running when starting up the Flask server
Part 3 - Setting up the Angular front-end

Make sure that you have Node6.x or higher version installed

Install AngularCLI

m install -g @angular/cli

Set environmental variable in ./dronesym-frontend/src/environments/environment.ts

ApiKey: 'YOUR_GOOGLE_MAPS_API_KEY',
ApiURL: 'http://localhost:3000/dronesym/api/node',
URL: 'http://localhost:3000/feed'

Note: Dronesym Node server (./dronesym-node/) and DroneSym Flask server (./dronesym-python/flask-api/src) should be running before starting the frontend server_

Starting the Angular2 development server

m install
 serve
Default login credentials
Admin
name: admin
word: admin
User
name: icarus
word: icarus
Part 4 - Running with Docker (Optional)

Checkout to docker branch

t checkout docker

Navigate to the root folder

Run

cker-compose up

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.