Giter Site home page Giter Site logo

saferstreets-server's Introduction

Watch Over Me - Crime Data Engine Project (Safer Streets)

Setup Build Environment

Each environment may have different setup (for example database connection and Elastic Beanstalk environment).

To allow multiple environment in this project, please duplicate /local.properties and rename it to your desired environment.

To build, please run ant with an argument -Dbuild.env={your-environment-name}. If you don't provide the argument, Ant will use local environment.

E.g.:

ant clean war                         ## local env
ant clean war -Dbuild.env=production  ## production env

FYI: All /conf/**/*.xml files will be process in Ant Replace Token filter. So, any string within @ and @ will be replaced by corresponding properties in /${build.env}.properties.

Initial Configuration

You will need to edit two files, local.properties and conf/SystemConfig.properties first and add in your relevant settings and keys.

Deployment to AWS Elastic Beanstalk

Requirements

We need this app to deploy automatically to AWS Elastic Beanstalk:

Install:

sudo apt-get install python-dev
sudo pip install awsebcli
sudo pip install awscli

AWS CLI configuration (first time):

aws configure

How to Deploy

  1. Clean project, create WAR and deploy it to AWS Elastic Beanstalk.

     ant clean aws-eb-deploy -Dbuild.env=test
    
  2. Turn off NAT service (optional, if not being required anymore).

     ant aws-vpc-nat-stop -Dbuild.env=test
    

saferstreets-server's People

Contributors

watch-over-me avatar

Watchers

Jia You 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.