This project is part of the IBM Call for Code competition. Theme is to give a solution to Natural disasters(Earth quakes,Tsunami,Volcanic eruptions) in the way of predictive analysis, that will really help the NGOs for it's activites.
Basic Web project with Python with Django
The Web basic starter contains an unopinionated set of files for web serving:
app/templates/index.html
staticfiles/js/bundle.js
staticfiles/css/default.css
- If you don't already have it, install Python
- Install Docker on your machine.
- Optional: Install IBM Cloud Developer Tools to build, run, and deploy using IDT
# Install needed dependencies:
idt install
# Build the docker image for your app:
idt build
# Run the app locally through docker:
idt run
# Deploy your app to IBM Cloud using Cloud Foundry:
idt deploy
# Deploy your app to IBM Cloud using Kubernetes:
idt deploy --target container
- Install the IBM Cloud CLI
- Install the plugin with:
bx plugin install dev -r bluemix
IBM Cloud DevOps services provides toolchains as a set of tool integrations that support development, deployment, and operations tasks inside Bluemix. The "Create Toolchain" button creates a DevOps toolchain and acts as a single-click deploy to IBM Cloud including provisioning all required services.
*Note you must publish your project to Github for this to work.
The project contains IBM Cloud specific files that are used to deploy the application as part of an IBM Cloud DevOps flow. The .bluemix
directory contains files used to define the IBM Cloud toolchain and pipeline for your application. The manifest.yml
file specifies the name of your application in IBM Cloud, the timeout value during deployment, and which services to bind to.
Credentials are either taken from the VCAP_SERVICES environment variable if in IBM Cloud, or from a config file if running locally.
The IBM Cloud development plugin makes it easy to compile and run your application if you do not have all of the tools installed on your computer yet. Your application will be compiled with Docker containers. To compile and run your app, run:
bx dev build
bx dev run
Your application is running at: http://localhost:3000/
in your browser.
- Health endpoint:
/health
To build and debug your app, run:
bx dev build --debug
bx dev debug
To debug a django
project run python manage.py runserver
with DEBUG set to True in settings.py to start a native django development server. This comes with the Django's stack-trace debugger, which will present runtime failure stack-traces. For more information, see Django's documentation.