Giter Club home page Giter Club logo

orders's Introduction

Bluemix Python Web application

Build Status codecov

This repository if for Team Bravo Orders Project.

Follow the steps below to get the code up and running locally.

Prerequisite : Vagrant and VirtualBox

Get the code

From a terminal navigate to a location where you want this application code to be downloaded to and issue:

    $ git clone [email protected]:NYU-DevOps-S17/Orders.git
    $ cd Orders
    $ vagrant up
    $ vagrant ssh
    $ cd /vagrant

This will place you into an Ubuntu VM all set to run the code.

You can run the code to test it out in your browser with the following command:

$ python run.py

You should be able to see it at: http://localhost:5000/

Swagger doc page: http://localhost:5000/apidocs/index.html

When you are done, you can use Ctrl+C to stop the server and then exit and shut down the vm with:

$ vagrant halt

BlueMix deployment

Once there is an update on the master branch, BlueMix will auto build/deploy the latest working copy.

BlueMix URL: https://nyu-devops-orders-prod.mybluemix.net/
BlueMix Swagger doc page: https://nyu-devops-orders-prod.mybluemix.net/apidocs/index.html?url=/v1/spec
BlueMix docker container deploy: https://hello-containers-20170426230123948.mybluemix.net/

BDD / TDD tests command when running locally

Use the following commands to test BDD and TDD results.

    BDD: $ behave
    TDD: $ nosetests

Structure of application

Procfile - Contains the command to run when you application starts on Bluemix.

requirements.txt - Contains the external python packages that are required by the application.

runtime.txt - Controls which python runtime to use. In this case we want to use 2.7.9.

README.md - this readme.

manifest.yml - Controls how the app will be deployed in Bluemix and specifies memory and other services like Redis that are needed to be bound to it.

app folder - The folder where the python application script stored.

old-files folder - The folder containing old lab code.

features folder - The folder containing BDD tests feature file and steps.

tests folder - The folder containing TDD tests py files.

orders's People

Contributors

matthewchiappa avatar kehanwu avatar juderuben avatar maskyyoung avatar vignesh3193 avatar

Watchers

 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.