Skip to content

rishistyping/PROJECT_X_CALL-FOR-CODE-18

Repository files navigation

PROJECT_X

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.

EvidenceBase

Basic Web project with Python with Django

Platform

Table of Contents

Summary

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

Requirements

Local Development Tools Setup (optional)

  • If you don't already have it, install Python

IBM Cloud development tools setup (optional)

  1. Install Docker on your machine.
# 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
  1. Install the IBM Cloud CLI
  2. Install the plugin with: bx plugin install dev -r bluemix

IBM Cloud DevOps setup (optional)

Create Toolchain

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.

Configuration

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.

Run

Using IBM Cloud development CLI

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

Using your local development environment

Endpoints

Your application is running at: http://localhost:3000/ in your browser.

  • Health endpoint: /health

Debug

Using IBM Cloud development CLI

To build and debug your app, run:

bx dev build --debug
bx dev debug

Using your local development environment

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.

About

CALL_FOR_CODE_18//Commit to the Cause. Push for Change. Answer the Call.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •