Git Product home page Git Product logo

intro-to-coldfusion's Introduction

Intro CFML

Coldfusion Admin Panel

p://127.0.0.1:8500/cfide/administrator/index.cfm

variables

variable prefix precedence

* CFC
* CFTHREAD
* Query
* Fucntion Arg
* Local var
* CGI var
* File VAR
* url PARA
* Form Fields
* CLient

Conditional operators

CFML cond

Switch faster than if

Functions/ methods

isDefined('var') -> check if var exists
(url.SampleVar) -> looks for 'sampleVar' in url.
<cfparam name="varname" default="some default value> -> checks if the param exits if not assigns a default value. MonthaAsString(num) -> takes numeric value and changes it into string value

SQL server on Docker

Key Docker Task

  • Run SQL Server locally, but only when it is needed,
  • make it easy to upgrade

Docker overview

  • Lingo
    • Images : An image is a read-only template with instructions for creating a Docker container.
    • Container: container is a runnable instance of an image.
  • Docker’s methodologies for shipping, testing, and deploying code quickly, can significantly reduce the delay between writing code and running it in production.
  • Docker’s container-based platform allows for highly portable workloads. Docker containers can run on a developer’s local laptop, on physical or virtual machines in a data center, on cloud providers, or in a mixture of environments.
  • Docker Qucik Scenario
    • Your developers write code locally and share their work with their colleagues using Docker containers.
    • They use Docker to push their applications into a test environment and execute automated and manual tests.
    • When developers find bugs, they can fix them in the development environment and redeploy them to the test environment for testing and validation.
    • When testing is complete, getting the fix to the customer is as simple as pushing the updated image to the production environment.

Install DB docker pull microsoft/mssql-server-windows-developer

Set up DB docker run --name NjiSqlTestServer -p 1433:1433 -e 'sa_password=Pa$$word1234' -e 'ACCEPT_EULA=Y' -d microsoft/mssql-server-windows-developer

Install SSMS and connect

ssms_login

Application.cfm

Always called before any other page in CF

  • declare all global var here
  • one file to use everywhere
  • for example a DB to use with every other page -> <cfset datasource = 'Products'> just have to change Products if need to change DG
  • calling up header -> <cfinlude template = 'haeder.cfm>

onRequestEnd.cfm

  • auto executes towards the end of cfm

CF work flow

cf loading workflow

-> loads the page.

intro-to-coldfusion's People

Contributors

qasimtalkin avatar

Watchers

 avatar  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.